custom_args

package
v0.0.0-...-392fa8f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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