Install Go third-party library

Source: Internet
Author: User
Tags install go
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.