This is a creation in Article, where the information may have evolved or changed.
Last year's work, contact with the Golang, starting this year, self-interest, began to self-study golang. The first short introduction to the Golang,go language is Google's development of a compiled, and hairstyle, with garbage collection features of the system programming language, the official support Freebsd,linux,mac OS and Windows four operating systems. Designed and developed by many of the industry's top know-how, it's designed to solve real-world problems encountered in server-side development, plus open source attributes, attracting more and more developers to participate.
Golang's advantages are not listed, I have high concurrency, multi-core support, lightweight goroutine and channel design love. Relevant Golang learning materials can be recommended official website, "Go Language Bible" and so on, GitHub can study the relevant outstanding Golang open source project
This article mainly describes Golang command tools, roughly describe the following Golang related commands, in order to make good use of tools in the development process, with less effort.
The go language comes with a complete set of command-handling tools that we can perform on the command line to see Help
Usage:go command [arguments]the commands are:build compile packages and dependencies clean remove O Bject files Doc show documentation for package or symbol ENV print Go environment information fix Run Go tool fix on packages FMT run GOFMT in package sources generate generate go files by proce ssing source get download and install packages and dependencies install compile and install packages and Dependencies list packages run compile and run Go Program test test Packages Tool Run specified go tool version print go version vet run Go tool vet on Packagesuse ' Go help [comma ND] "For more information about a command. Additional help Topics:c calling between Go and C Buildmode description of build modes filetype F Ile types gopath GOPATH environment variable environment environment variables Importpath Import path Syntax Packages description of package lists Testflag description of testing flags TestFunc Description of testing FunctionsUse "Go help [topic]" For more information on that topic.
These commands are very useful for the code we normally write, and we'll look at some of the common commands in detail later.