This is a creation in Article, where the information may have evolved or changed.
Install Go third-party library
Go help View commands
The commands Are:build compile packages andDependencies clean Remove object files Doc Show documentation forPackageorSymbol ENV Print GO environment information fixRunGo tool fix onPackages FMTRunGofmt onPackage sources generate generate Go files byProcessing sourceGetDownload andInstall packages andDependencies Install compile andInstall packages andDependenciesList ListPackagesRunCompile and RunGo Program test test Packages ToolRunSpecified Go toolversionPrint GoversionVetRunGo Tool Vet onPackagesuse"Go help [command]" forMore information Abouta command. Additional Help Topics:c CallingbetweenGo andC Buildmode Description ofBuild Modes filetypefileTypes Gopath GOPATH environment variable environment environment variables Importpath Import path syntax Packages description ofPackage Lists Testflag description ofTesting Flags TestFunc Description ofTesting FunctionsUse"Go help [topic]" forMore information About thatTopic.
Using go get, you can get directly to GitHub's third-party library and then use go install to install third-party libraries
For example, install Gocurse as an example (git path is https://github.com/mpatraw/gocurse.git)
get github.com/mpatraw/gocurse
记得设置GOPATH