This is a creation in Article, where the information may have evolved or changed.
Project Self-Management steps
1, installation Golang
In this case, only the installation steps under Windows
Here are the detailed Windows installation and environment variable setup steps
After the installation is complete, we will create a new bin and src directory in the appropriate directory
2. Compile operation
Then create the hello.go in the SRC directory
Yourdir is your engineering path.
mkdir -p YOURDIR/src/github.com/you/helloworldcd$GOPATH/src/github.com/you/helloworld
Finally, just run two lines of code
go run helloworld.go//验证结果go build//编译成二进制文件
Run when we're ready to release
install
You can see our compiled EXE file in the bin directory
Go into some
In addition to some of the above basic content, I also found some good information to
Go Project Directory Management
Summed up here is a bit deeper, the article pulled to the end there are some good directory layered articles, remember to check