Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

golang "goinstall" command missing

Tags:

go

I just installed golang on my machine. It appears that the way to install third party libraries is via the "goinstall" command, however this did not appear to install as part of the OSX package installer.

Am I missing something here?

Carl

like image 567
user1513388 Avatar asked Sep 08 '14 23:09

user1513388


2 Answers

Downloading and installing packages and dependencies is normally done using go get

go get github.com/user/package

Or go install when compiling and installing third party packages:

go install github.com/user/tool
like image 77
ANisus Avatar answered Sep 20 '22 19:09

ANisus


You may reference the old tutorial or book. Read these.

  • http://golang.org/doc/code.html (must read)
  • http://golang.org/cmd/
  • http://golang.org/cmd/go/

goinstall is replaced by go install, I often use go get -u to get updated source.

Another tip is go get -d in your *.go source directory, then, it will get related packages automatically.

like image 28
Daniel YC Lin Avatar answered Sep 23 '22 19:09

Daniel YC Lin