Prepare to learn Go-lang ~ ~ What posture should I use to study go?!

Source: Internet
Author: User

Go after all is a new language, not so many historical baggage, and is produced by Google, C language founder for the language design team members, should still be good.

Go is inherently parallel, and the role of this in modern server-side programming is obvious, with efficient service, fast coding, and the ability to quickly iterate within the Internet domain. This is a natural language for the Internet.

So, as a C + + programmer, for some web-side scenarios, learning a modern programming language is not just a new technology, but also a good time to expand the vision of technology.

So, GO!

Start nothing to say, into the official website (https://golang.org/) Download the installation, Linux version of. I now have the Enlightenment, the server side will not put windows under, Trouble, Windows Server programming too pit, Linux also do not use desktop version, install B harm oneself too uncomfortable, or use command line.

Try go on the homepage of the official website first, play a go and see what it looks like.

Then read the document (https://golang.org/doc/), the English document can not understand the words of the best to look down, the programmer how to the English document to recognize it! If you really do, here is the Chinese document (Https://github.com/golang/go/wiki/NonEnglish).

1,getting Started, understand the go compiler run HelloWorld, etc.;

2, should have seen tour tutorial first, but I was impatient, first look at how this machine development. So look how to write go code, understand the next Go project directory is probably how, what the general process is, how to quote packages, generate packages and so on. (PS: There is a hole here, if you set the Gobin this environment variable, in this section need to delete this, see http://stackoverflow.com/questions/17667803/ Go-install-always-uses-goroot-bin-instead-of-gopath);

3, figure out how to start writing code, how to compile, go back to see the Tutorial ~ ~ Tutorial: A tour of Go, read the tutorial can brag, I learned to Go;

4, after blowing cattle, come back to write code, I am ready to write a Hello World HTTP server, and then write a test of the number of concurrent client program, of course, all with go to write, server programs and client programs are placed under two ubunt virtual machine. This demand is more obvious, need to output to the standard output function, need HTTP support, need concurrent support.

Prepare to learn Go-lang ~ ~ What posture should I use to study go?!

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.