I use command go get github.com/gorilla/mux
. I made http server using Golang, and I run this program :
package main
import (
\"fmt\"
\"htm
If you are using VS Code as your IDE and facing this problem:
VS Code uses $HOME/go
as your default GOPATH
- if you export another GOPATH
you running into this trouble.
How to solve:
cd prjectFolder
. Type go env
and check if the GOPATH
entry is the same as you get when you use cmd+t
and then >Go: Current GOPATH
"go.gopath": "/some/path"
where /some/path
is the same path you export in you shell, zsh and so on. Hope this helps.