Has anyone had any luck with the YT videos or courses way?
Has anyone had any luck with the YT videos or courses way?
[0]: https://www.oreilly.com/library/view/learning-go-2nd/9781098...
The good news is that the language and stdlib docs are concise and extremely clear. One of the really impressive things about Go.
``` func (r rect) area() int { return r.width r.height } ```
This syntax is strange to me despite being a simple example. I can tell that it's a function that takes in a rect pointer, is maybe named area() (but I'm now confused why this definition doesn't have an argument?), and returns an integer value. I've tried reading larger Go files and constantly run into syntax confusion like this and get exhausted.
So sure, I understand the gist of this code, but this is more difficult to understand IMO than any Python, Ruby, Java, Swift, Rust, Gleam code I've read.