Go · Interface
fmt.Stringer
stringer generates String methods for named integer types with constants. The methods return constant names, so values print through fmt.Stringer.
Last updated
Syntax
stringer [flags] [directory | files]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
fmt.Stringergo generate-type-output-linecomment-trimprefix