Documentation
¶
Index ¶
- func CapitalizeASCII(s string) string
- func GetEnum(files map[string]tidl.Document, name string) (tidl.Enum, bool)
- func GetType(files map[string]tidl.Document, name string) (tidl.Type, bool)
- func RegisterGenerator(language string, g Generator)
- func ToPascal(s string) string
- type Config
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapitalizeASCII ¶
CapitalizeASCII capitalizes the first ASCII letter of a string.
func RegisterGenerator ¶
RegisterGenerator registers a new generator for the given language.
Types ¶
type Config ¶
type Config struct {
IDLSrcDir string // Directory containing source IDL files
OutputDir string // Directory where generated code will be written
EnableServer bool // Whether to generate server code
EnableClient bool // Whether to generate client code
PackageName string // Go package name for generated code
ToolVersion string // Version of the code generation tool
}
Config holds the configuration options for the code generator.
type Generator ¶
type Generator interface {
Gen(config *Config, files map[string]tidl.Document, meta *tidl.MetaInfo) error
}
Generator defines the interface that any language-specific generator must implement. The Gen method generates code based on the given configuration, documents, and metadata.
func GetGenerator ¶
GetGenerator retrieves a registered generator for a given language.
Click to show internal directories.
Click to hide internal directories.