I\'m trying to install a web.go, but running go get github.com/hoisie/web returns
package bufio: unrecognized import path \"bufio\"
I encountered this issue when installing a different package, and it could be caused by the GOROOT and GOPATH configuration on your PATH. I tend not to set GOROOT because my OS X installation handled it (I believe) for me.
Ensure the following in your .profile (or wherever you store profile configuration: .bash_profile, .zshrc, .bashrc, etc):
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin
Also, you likely want to unset GOROOT, as well, in case that path is also incorrect.
Furthermore, be sure to clean your PATH, similarly to what I've done below, just before the GOPATH assignment, i.e.:
export PATH=$HOME/bin:/usr/local/bin:$PATH
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin
Then, source <.profile> to activate
go get