Go language learning Directions

Some students do not know is not going to start learning Golang, I do not know how to start, at least when I started to learn that feeling, for this I had a lot of inquiries and post questions and answers. Golang online information, while small, but also a lot of learning that one of my route, starting from simple content can be used as a reference.

The first step in Go Tour

This is an official introductory tutorial, or just a general idea of ​​the tutorial describes only some simple things, and there is not much explanation. But this online tutorial support the implementation of the code, is still very good, this time you do not need to have a local development environment. Do not think too much, start now, read through from start to finish this tutorial, practice again, encountered do not understand and do not tangle, continue to look back on the line.

Official: https://tour.golang.org

Chinese net: http://go-tour-zh.appspot.com

The second step development environment

Here you can also see not ignore, because each tutorial will introduce how to configure the environment

operating system

Personally recommend using Linux, you can use Ubuntu or Fedora, if conditions permit (not bad money) can also use the Mac, of course, also possible to use Windows, it will slowly do you know tangled developed under Windows.

Development environment

Go installation is very simple, not too much dependence, if it is installed under Linux basically download a binary package, extract a configuration environment variable, GOROOT either, and you can view the official specific installation methods

Development tools
can choose one you like, use a personal recommendation IDE, I used vim, Sublime, Intellji idea, finally found the IDE or more convenient, especially in the code to track the breakpoint and so on. This is not the kind of tangle good, and I said it was Sublime and vim installed plug-ins can also be, but personally do not recommend (I used to be heavy users Sublime, PHP has been developed under the Sublime).

Mainstream text editor and configure the IDE has officially introduced, choose one you like it.

The third step is to see a video

Some people might like to watch the video, some people might like to see the document, this according to personal preference to choose, personal advice and look set to see a video is enough, after all, to see the video of efficiency is still relatively low, after reading some basic video We can grasp the knowledge points, and will know the names of some proprietary read law. I used the time to learn PHP would have never seen the video, resulting in many nouns pronunciation is wrong, often ridiculed people ......, of course, if English is very good students do not have to tangle.

Golang online video is not a lot, but there are a lot of sets, recommended no smell of Go programming basics, this is golangcaff.com of Summer
finishing optimized, the effect will look better than some of the other sites.

The fourth step to see a tutorial

There are many tutorials, personal preference it is recommended to see Go Getting Started Guide, this is no smell from the translation of The Way to Go, but the community version is optimized for layout and add some finished behind not translated.

The fifth step of the standard libraries all over again

To call at least read through all commonly used, such as strings / strconv / http, etc., if they are able to remember, if memory is not very good (like me) have at least to know what, when used by manual You can quickly find.

Official standard library: https://golang.org/pkg/

Chinese version of the standard library: https://studygolang.com/static/pkgdoc/main...

Highly recommended https://github.com/astaxie/gopkg, you can look at this in a time of learning, there are detailed instructions and examples on the standard library, and some of them will be easy to learn, and so know all about it when you want to use to go see above documents.

Update:

Also found information on a good learning standard library: "Go language standard library" The Golang Standard Library by Example, a little regret is not very wide, individual package is not complete, but astaxie that's not all, you can refer to each other with Look.

carry out

By this time, you must have a beginning, and the rest began to write their own thing, too, such as writing a blog, or a framework to learn, do not know how to continue their studies, then went on a recruitment website to see their favorite businesses What are the requirements, recruitment requirements will go for what.

Published 115 original articles · won praise 67 · Views 100,000 +

Guess you like

Origin blog.csdn.net/meifannao789456/article/details/102521164