This is a creation in Article, where the information may have evolved or changed.
Ubuntu installation when the go environment is configured, the terminal executes "go" to show some common commands. Some of these are used when compiling and installing the signaling server.
After the "Go" is executed,
Usage:go command [arguments]the commands are:build Compile packages andDependencies clean Remove object files env print Go environment information fixRunGo tool fix onPackages FMTRunGofmt onPackage sourcesGetDownload 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 gopath gopath environment variable importpath import path Syntax packages description ofPackage Lists Testflag description ofTesting Flags TestFunc Description ofTesting functions
Go BUILD: Compile packages and dependencies.
If it is a main package, the default compilation of all packages that are in the directory where the command was executed generates the executable file. You can also specify the files you want to compile, and then add the files after the command.
Go get: Download and install packages and dependencies. In two steps, download the required dependency package, compile and install it. Download the dependent source download tool. Before go get, you must install the necessary download tools, more details about the visible http://www.jb51.net/article/56781.htm
Go install: Compile and install packages and dependencies. In two steps, compile the resulting file and move the resulting file to gopath/pkg or Gopath/binmulu xia.
Go Doc pkgname: can be used to view the Pkgname manual. Try the next, on the ubuntu14.04 above, go1.5.1 case, execute apt-get install golang-go.tools to install the Go Doc tool.
APPRTC Signaling Server Collider the steps to compile the installation are
Go get collidermain action is download dependency
The Go install Collidermain function is to compile and install, and finally generate the executable file under Gopath/bin.