The Go Blog

Two New Tutorials for 1.18

Katie Hockman, for the Go team
14 January 2022

We will be releasing Go 1.18 soon, and this release includes a few new concepts for Go. We have published two new tutorials to help introduce you to these upcoming features.

The first new tutorial will help you get started with generics. This tutorial walks you through creating a generic function that can handle multiple types, and calling it from your code. Once you’ve created a generic function, you’ll learn about type constraints, and write some for your function. Also consider checking out the GopherCon talk about generics to learn more.

The second new tutorial will help you get started with fuzzing. This tutorial demonstrates how fuzzing can find bugs in your code, and walks through the process of diagnosing and fixing the issues. In this tutorial, you will write code that has a few bugs and use fuzzing to find, fix, and verify the bugs using the go command. Special thanks to Beth Brown for her work on the fuzzing tutorial!

Go 1.18 Beta 1 was released last month, which you can get by visiting the downloads page.

See the full draft release notes for Go 1.18 for more details about what to expect in the release.

As always, if you notice any problems, please file an issue.

We hope you enjoy the tutorials, and we look forward to everything to come in 2022!

Previous article: Go 1.18 Beta 1 is available, with generics
Blog Index