Hi Braaad - First, Goli doesn't get to decide who you are allowed to pet and who your are not allowed to pet. The behaviour Goli is exhibiting is resource guarding - he sees you
resource, a possession like toys, a dog bed, his food. How old is Goli?
Usually, when dogs resource guard their owners, and try to put controls on what the owner is allowed to do and what they are not allowed to do (like pay attention to other dogs), it is a sign of pack structure breaking down, or always having been unclear to the dog about who the pack leader is. In instances of uncertainty, dogs always assume that there is not clear cut leader, and will step into that role, and start making rules for others.
So basically, you need to step up and be clear that YOU are the leader, NOT a resource (like a provider of non-ending supply of play, pets and food), and you will NOT accept him treating you as one, because that is disrespectful to the leader position.
Being a leader in the house is a matter of a lot of little things that one does and expects from the dog throughout the day. Often such subtle moves and behaviours from our own part and from the dog is the dance of who is boss, that many people completely miss the signs that they have been demoted and their dog has taken over. One of the best ways to regain leadership is by learning about Nothing In Life Is Free (NILIF - or sometimes NILF - lots of info on the web), and implementing this way of being into everyday life. It is not a big change of life-style for you, just a lot of little things that show the dog that you are in charge, and sets up your dog to live up to those expectations - asking for something whenever a resource is about to apear: focus and sit before being fed, sit and wait before being leashed for a walk, calm before being released for play, moving out of the way for you, respecting your space.
Here are a few posts and threads about people having had excellent results once NILIF came into their lives: