Skip to content

Glossary: Go Basics

Interface

Also written: interfaces, interface type

A type that lists methods. Any type that has all of them satisfies it automatically, so one function can work with many types, like `quote` with every `Shipper`.

Where the book teaches it

Related terms

any