DOKK / manpages / debian 12 / golang-golang-x-tools / stringer.1.en
STRINGER(1) General Commands Manual STRINGER(1)

stringer - generates methods satisfying fmt.Stringer

stringer

Stringer is a tool to automate the creation of methods that satisfy the fmt.Stringer interface. Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing "func (t T) String() string".

Run stringer -help for more details.

This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others).

2015-07-24