Hello! I'm new to Golang and this subreddit. I have been learning the basic Go syntax and structure recently, and since I have found it rather intuitive, I've decided to take the plunge and truly try and learn as much Go as I can this summer (aka, you'll probably see me more often in this sub in the future...). I came from mostly Python experience, some Java. Python started out fine for me - I had the syntax down, OOP wasn't a big problem for me. But, I had trouble learning the standard libraries. i've noticed that Go's documentation for its libraries is less geared towards newbies than Python's is. That being said, I've chosen Go, and I am motivated to learn it, but I want to ask this corner of the internet which libraries I need to know/are very useful, and some of the best ways that I can go about learning them. Thanks!
TL;DR Which of the standard (or not standard) libraries should I learn, and what is the best way to go about doing so?
*Edit - I'd like to make GUI/command line applications, maybe do some web stuff
*Edit - also, some pointers to some well written and basic Go code in Github would be great. Thanks
评论:
Logiraptorr:
https://gobyexample.com/ is a great place to start for a bunch of basic stuff like reading files, etc. It starts with just basic syntax, but the later items are a nice introduction to the standard library in practical terms. Let's see, the most widely used packages probably include net/http, io, fmt, and os. I'd also explore the packages at https://golang.org/x/, which is the 'extended standard library.' These packages are useful enough to get recognition by the go team, but not yet stable enough to be included in the core library and be subject to the Go1 compatibility guarantees.
