Skip to content

Glossary: Go Basics

Stringer

Also written: String method

A small interface in `fmt` with one method, `String() string`. If a value has it, `fmt` calls it to get the text to print.

Where the book teaches it