Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomArgs ¶
type CustomArgs struct { *args.GeneratorArgs BoundingDirs []string // Only deal with types rooted under these dirs. TrimPackagePath string // If specified, trim the path from PackagePath before writing files. }
CustomArgs is used tby the go2idl framework to pass custom_args specific to this generator.
func GetCustomArgs ¶
func GetCustomArgs(args *args.GeneratorArgs) *CustomArgs
func NewCustomArgs ¶
func NewCustomArgs(args *args.GeneratorArgs) *CustomArgs
func (*CustomArgs) AddFlags ¶
func (a *CustomArgs) AddFlags(fs *pflag.FlagSet)
func (*CustomArgs) NewBuilder ¶
func (a *CustomArgs) NewBuilder() (*parser.Builder, error)
NewBuilder makes a new parser.Builder and populates it with the input directories.
Click to show internal directories.
Click to hide internal directories.