After 2.5 years of writing, countless weekends and evenings, I released a book about the Go programming language. The book is available for free on the website because I wanted to give something back to the developer's community :) It is composed of 700+ pages, 41 chapters, and approximately 405 drawings/screenshots. I tried to cover all the important topics that a new Go programmer should know. At the end of each chapter, you can find a small Q/A and a bullet point list of key notions. I would love to hear your feedback about it!
I really like that you go in detail of common and important standard library functions and hit come important things like database drivers and JSON. 700 pages is a nice big programming book and it looks like you're not skimping on details. Great job and good work!
Thanks for those kind words, I tried to cover a lot of topics. Consequently it makes a lot of pages! I hope that the content will help you !
Do not hesitate to contact me if you spotted an error or if you want to suggest an improvement.
I can't thank you enough! I wanted to learn Go and wanted something like this. I really like the chapter structure, it really easy to follow and progress.
This is great,well done! I was thinking of picking Go at some point this year, need not to forget to buy the book.
May I ask what did you for the website,looks pretty neat?
Go is easy to learn, and you need a limited amount of time to produce code! I built the website with VueJS, and I use bootstrap for the CSS part (with https://bootstrap-vue.org/).
Great book! (and this from someone who does not like Go :)). After reading a bit I was almost ready to jump in again and then I remembered errors and the associate repeating code and I got back to Python.
I have a friend who is constantly trying to drag me though the fence so maybe one day. You may want to try quasar (https://quasar.dev/) for your VueJS sites - it is excellent.
Thank you for this fantastic resource. I've been meaning to learn Go for a while, but have a lot of difficulty staying focused on tutorials with big blocks of text. Your concise bullet format is really easy to follow, and would be especially useful for anyone who doesn't speak English as their first language.
Man I been looking at diving into Go for a while now, time to go in headfirst. Really appreciate your contribution and I feel the exact same way about wanting to give back to the community, one day I'll have something of value to offer!
I've found an error. In Chapter 6, Section 3 (Introduction) you say, "In a previous chapter, we covered decimal and binary notation." but those topics aren't covered until Chapter 7 :)
On another note, you might want to consider converting the online copy of the book to MkDocs (using the Material theme), so that it's easier to read, navigate and search.
MkDocs isn't a "format" as such. It requires you to write Markdown and then configure the mkdocs.yml file to define the website's properties, such as the navigational structure.
I like the current design, it is really clean and pleasant to read.
I don't like Material Design, kind of makes everything look massive taking up too much space as if my desktop is a phone screen. for ex: http://angular-material.fusetheme.com/ui/forms
Can you help me understand this code on interfaces? If you were calling (CartStore.GetById()) where does (*cart.Cart) come from? I don't see any logical connection between these two.
type Cart interface {
GetById(ID string) (*cart.Cart, error)
Put(cart *cart.Cart) (*cart.Cart, error)
}
// A type that implements the interface :
type CartStore struct{}
func (c *CartStore) GetById(ID string) (*cart.Cart, error) {
// implement me
}
func (c *CartStore) Put(cart *cart.Cart) (\*cart.Cart, error){
// implement me
}
I think that there is a mistake in the name of the interface type.
It should not be `Cart` but something else. Like `CartStorage`. A type that implement this CartStorage interface can be named `MySQLCartStorage` or `DynamoDBCartStorage`. Each database engine responsible for the storage will have a different implementation. The interface is here to define a contract, a set of behaviors that you should implement. I will definitely change that
Let me just clarify, sorry i'm from python, so not very familiar but this feels like a "circular reference". You're implementing a struct CartStore which has methods GetById, and Put. Because interfaces (or contracts) are implicit then it's automatically considered a Cart.
What I don't understand is the return types of these functions, a pointer to a cart's cart member? or an error.
Comments (157) 48 threads
Show all comments
Showing thread 1 of 48
After 2.5 years of writing, countless weekends and evenings, I released a book about the Go programming language.
The book is available for free on the website because I wanted to give something back to the developer's community :)
It is composed of 700+ pages, 41 chapters, and approximately 405 drawings/screenshots.
I tried to cover all the important topics that a new Go programmer should know.
At the end of each chapter, you can find a small Q/A and a bullet point list of key notions.
I would love to hear your feedback about it!
Thank you for your feedback !
Thanks for those kind words, I tried to cover a lot of topics. Consequently it makes a lot of pages!
I hope that the content will help you ! Do not hesitate to contact me if you spotted an error or if you want to suggest an improvement.
Do not hesitate to send me feedback in order for me to improve the content.
Go is easy to learn, and you need a limited amount of time to produce code!
I built the website with VueJS, and I use bootstrap for the CSS part (with https://bootstrap-vue.org/).
I have a friend who is constantly trying to drag me though the fence so maybe one day.
You may want to try quasar (https://quasar.dev/) for your VueJS sites - it is excellent.
Continue this thread — 1 reply
Also really respect that you clearly did this out of passion, so I'll say this to everyone on your behalf: support the author by purchasing a digital copy!
https://www.practical-go-lessons.com/buy-digital-or-hard-cop...
Continue this thread — 1 reply
I've found an error.
In Chapter 6, Section 3 (Introduction) you say, "In a previous chapter, we covered decimal and binary notation." but those topics aren't covered until Chapter 7 :)
I'd gladly lend a hand with this, if you like?
Continue this thread — 1 reply
Could be that it's just me though
I think that there is a mistake in the name of the interface type. It should not be `Cart` but something else. Like `CartStorage`.
A type that implement this CartStorage interface can be named `MySQLCartStorage` or `DynamoDBCartStorage`. Each database engine responsible for the storage will have a different implementation.
The interface is here to define a contract, a set of behaviors that you should implement.
I will definitely change that
What I don't understand is the return types of these functions, a pointer to a cart's cart member? or an error.
Continue this thread — 2 replies
Continue this thread — 9 more replies