Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Language string
Outdir string
Outfile string
CopyrightFilePath string
CopyrightText string // set to content of CopyrightFilePath
ErrorWriter io.Writer // all Errors and warnings should be redirected to this io.Writer, by default it is os.Stderr
SchemaURL string
SchemaTimestamp uint // for TLO version/date
SchemaCommit string
// common options for many languages
GenerateRPCCode bool
GenerateRandomCode bool
BytesWhiteList string
Kernel pure.OptionsKernel
Go OptionsGo
ProfileCPU string
// sometimes we need to replace lots of names in vkgo repository, when we change generation.
// so it turned out, the fastest solution is simply use generator itself
ReplaceDir string
// contains filtered or unexported fields
}
func (*Options) GenerateTL2 ¶ added in v1.2.35
func (*Options) ReplaceStringInDir ¶ added in v1.3.4
func (*Options) ReplaceStrings ¶ added in v1.3.4
Any generator can request replacing client code in main repository by calling this function. User should run generator with --replaceDir=XXX for each repository to replace names in.
type OptionsGo ¶
Click to show internal directories.
Click to hide internal directories.