Documentation ¶
Overview ¶
Typically this process would be run using go generate, like this:
//go:generate go-option -type=Pill
With no arguments, it processes the package in the current directory. Otherwise, the arguments must name a single directory holding a Go package or a set of Go source files that represent a single Go package.
The -type flag accepts a comma-separated list of types so a single run can generate methods for multiple types. The default output file is t_string.go, where t is the lower-cased name of the first type listed. It can be overridden with the -output flag.
Click to show internal directories.
Click to hide internal directories.