Full Introduction to Golang with Test-Driven Development
kovalevsky.io
kovalevsky.io
Going beyond what's built in, get familiar with https://github.com/stretchr/testify as that's used a lot.
Show me how to connect to a database.
Show me how to unit test something that does an external api call.
Show me how to build a generic file store package in such a way that the interface at the top level can be implemented for several providers.
Hello world tutorials are an absolute grift and I'm suspicious that anyone peddling them has never actually built something real.
Write some ultra basic stuff, title it like authoritative state of the art on current subject matter.
People are writing not because they have something to write but they have to write something.
(I’m not affiliated, just a happy customer)
This is clearly intended for complete beginners. It's explaining what a variable is. More advanced stuff comes later. Not to mention teaching a programming language is not the same as teaching frameworks and libraries within that language. If you're going to show more advanced exanples you inevitably need frameworks and libraries, which use more advanced language features and techniques, which makes learning a nightmare because now you're trying to understand a library while also trying to understand the language. Huge difficulty multiplier.
The first step is to learn the programming language itself. For that you don't need advanced code examples, nor do you want them. You want simple examples that demonstrate whatever you're trying to demonstrate with as little distraction as possible.