title: zsh: command not found: mockgen - golang 1.18 - macOS Monterrey
body: <p>I'm new to go. Currently I'm using zsh terminal in macOS, just followed the instructions pointed out here <a href="https://github.com/golang/mock" rel="nofollow noreferrer">https://github.com/golang/mock</a> when installing go mock. However when trying to execute a mockgen command I keep seeing <code>zsh: command not found: mockgen</code> and when navigating in the terminal to my <code>$GOPATH/bin</code> i see mockgen inthere, so I don't know if there's anything else needed.</p>
  <p><a href="https://i.stack.imgur.com/8uoba.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8uoba.png" alt="enter image description here" /></a></p>
  <p>These are the variables I have configured in my /.zshrc file:</p>
  <pre><code>#GO path
  export GOPATH=&quot;$HOME/Documents/study_projects/go&quot;
  export GOBINPATH=&quot;$GOPATH/bin&quot;
  </code></pre>
  <p>Idk if <code>GOBINPATH</code> is a proper name for this <code>$GOPATH/bin</code> variable to be exported to the PATH also, aso pointed out in <a href="https://github.com/golang/mock" rel="nofollow noreferrer">https://github.com/golang/mock</a> (mockgen/gomock)  installation instructions. Does anyone of you know what else is needed here, do I need an additional configuration for this mockgen command to work with zsh?</p>
  <p>Thank you!</p>