Below are the links to the to tutorials on go.dev. The release column to the right links to the tagged source code at the end of each particular tutorial.
Title | Description | Release |
---|---|---|
Getting started | Say Hello, World with Go. | 1 - Hello World |
Create a module | A multi-part tutorial that introduces common programming language features from the Go perspective. | 2 - Greetings |
Getting started with multi-module workspaces | Introduces the basics of creating and using multi-module workspaces in Go. Multi-module workspaces are useful for making changes across multiple modules. | 3 - Workspaces |
Accessing a relational database | Introduces the basics of accessing a database using the standard library. | 4 - Databases |
Developing a RESTful API with Go and Gin | Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. | 5 - REST API |
Getting started with generics | Introduces the basics of generics in Go. With generics, you can declare and use functions or types that are written to work with any of a set of types provided by calling code. | 6 - Generics |
Getting started with fuzzing | Introduces the basics of fuzzing in Go. Fuzzing can generate inputs to your tests that can catch edge cases and security issues that you may have missed. | 7 - Fuzzing |
Getting started with govulncheck | Introduces how to find and fix vulnerabilities with govulncheck. Govulncheck reports known vulnerabilities that affect Go code. | 8 - Govulncheck |
Find and fix vulnerable dependencies with VS Code Go | Introduces how to find and fix vulnerable dependencies directly from your IDE with VS Code Go and Vim. | 9 - Find and Fix |
A Tour of Go: Basics 1.1 Packages, variables and functions. |
A fairly comprehensive tour of everything you need to know about packages at a basic level, functions and their signatures (and shortcuts and also variables and navigating the strongly typed (but often inferred) world of Go. It also presents a few shortcuts that will make most peoples lives easier, but I suspect for me, they'll just create hours of bug hunting. | 10 - Tour 1.1 - Packages, variables and functions |
A Tour of Go: Basics 1.2 - Flow control: for, if, else, switch and defer. |
Theres some elegance in the way go doesn't have certain constructs. For example, while and if else are not present in the language. Instead, for can be used as a while and switch statements are the preferred way to handle multiple matching cases. I can see why this would wind some people up the wrong way, but I kind of like it. |
10 - Tour 1.2 - For, if, else, switch and defer |
A Tour of Go: Basics 1.3 - More types: pointers, structs, slices and maps. |
Theres some elegance in the way go doesn't have certain constructs. For example, while and if else are not present in the language. Instead, for can be used as a while and switch statements are the preferred way to handle multiple matching cases. I can see why this would wind some people up the wrong way, but I kind of like it. |
10 - Tour 1.2 - For, if, else, switch and defer |