This is a created article in which the information may have evolved or changed.
Previous users wanted Gitcafe to be able to support go get, allowing it to directly import code hosted on Gitcafe.
Now, we want to tell you the good news, for more developers, any go language package hosted on Gitcafe can be used directly in the project, installed and updated with the Go get tool.
For example, we can create a hello_world.go file on this machine with the following content:
package mainimport "gitcafe.com/rainux/go-hello"func main() { hello.World()}
The Go get-d command installs the Go-hello Project source code hosted on the Gitcafe into the $GOPATH, and the go run hello_world.go can output the classic "Hello world!" message.
As shown below:
I hope that all developers can be more convenient to develop in the Gitcafe, now start!
Happy Go programming!
Tips:
Go (also known as "Golang") is a programming language originally developed by Google. It has several design principles since its inception: simplicity, security, and speed. The Go language release has a variety of debugging, testing, tuning, and code review tools.
Go get is the default package management tool for Golang, which supports remote import of packages via version control tools such as Git/mercurial