"New features" Gitcafe already supports Go language package hosting

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

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.