I’ve tried installing Go from source and using the package installer. However, after following the steps in the installation guide, I started noticing that my go command does not work when I try to go install
my goop.go package. Has anyone encountered this trouble before? Any help would be greatly appreciated! Thanks!
Set path variables
export GOPATH=$HOME/code/gospace
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin::/path/to/elixir/bin:/usr/local/bin/erl:$GOPATH:$PATH
Workspace
.
-- bin
-- pkg
-- src
-- github.com
-- danielleknudson
-- goop
- README.md
- goop.go
Other things
danielle at Danielles-MacBook-Pro in ~/code/gospace$ which go
/usr/local/go/bin/go
danielle at Danielles-MacBook-Pro in ~$ go version
fatal: Not a git repository (or any of the parent directories): .git
danielle at Danielles-MacBook-Pro in ~$ go env
fatal: Not a git repository (or any of the parent directories): .git
danielle at Danielles-MacBook-Pro in ~$ env | grep GO
GOPATH=/Users/danielleknudson/code/gospace
goop.go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, World.")
}