Skip to content

Glossary: Data Structures and Algorithms in Go

Generics

A Go feature for writing one type or function that works for many types instead of a single concrete type. For example, a generic stack can hold strings, integers or any other type without being rewritten.

Where the book teaches it

Related terms

Stack