Documentation ¶
Index ¶
- Constants
- type Arguments
- func (a *Arguments) BuildFlags() *flag.FlagSet
- func (a *Arguments) MakeLogFunc() backend.LogFunc
- func (a *Arguments) Output(lang string) string
- func (a *Arguments) Parse(argv []string) error
- func (a *Arguments) Targets() (specs []*generator.LangSpec, err error)
- func (a *Arguments) UsedPlugins() (descs []*plugin.Desc, err error)
- type StringSlice
Constants ¶
View Source
const WINDOWS_REPLACER = "#$$#"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { AskVersion bool Recursive bool Verbose bool Quiet bool CheckKeyword bool OutputPath string Includes StringSlice Plugins StringSlice Langs StringSlice IDL string PluginTimeLimit time.Duration }
Arguments contains command line arguments for thriftgo.
func (*Arguments) BuildFlags ¶
BuildFlags initializes command line flags.
func (*Arguments) MakeLogFunc ¶
MakeLogFunc creates logging functions according to command line flags.
func (*Arguments) Output ¶
Output returns an output path for generated codes for the target language.
type StringSlice ¶
type StringSlice []string
StringSlice implements the flag.Value interface on string slices to allow a flag to be set multiple times.
func (*StringSlice) Set ¶
func (ss *StringSlice) Set(value string) error
Set implements the flag.Value interface.
func (*StringSlice) String ¶
func (ss *StringSlice) String() string
Click to show internal directories.
Click to hide internal directories.