stringer

command module
v0.0.0-...-629ad31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2018 License: MIT Imports: 16 Imported by: 0

README

Stringer

GoDoc Stringer is a simpler version of the "official" stringer tool with different runtime options.

Usage

  -dir directory
    	Package directory, defaults to current.
  -o filename
    	Output filename, defaults to stringer_gen.go in package directory.  If a literal dash (meaning '-o -') writes to standard output.
  -types list
    	Comma-delimited list of names of types to generate String methods for, defaults to all public types with named constants.

Notes

The generated String() method contains the constant tests in the order they're found in source files. If two different named constants have the same value, the first matching name will be returned by the String() method.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL