Search⌘ K
AI Features

Introduction

Explore Go generics introduced in Go 1.18, learning how to write generic functions and data types. Understand constraints, the difference between interfaces and generics, and practical considerations for supporting data types in your code.

We'll cover the following...

Overview of generics

This chapter is about generics and how to use the new syntax to write generic functions and define generic data types. The new generics syntax became available with the release of Go 1.18. ...