Documentation ¶
Index ¶
- type CGenerator
- func (gen *CGenerator) BindingFiles(forFile string, options generator.Options) []string
- func (CGenerator) IsGeneratedFile(file string) bool
- func (CGenerator) IsSourceFile(file string) bool
- func (gen *CGenerator) ModelFile(forFile string, options generator.Options) string
- func (gen *CGenerator) ParseSource(sourceFile string) (*model.ModelInfo, error)
- func (gen *CGenerator) WriteBindingFiles(sourceFile string, options generator.Options, mergedModel *model.ModelInfo) error
- func (gen *CGenerator) WriteModelBindingFile(options generator.Options, mergedModel *model.ModelInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGenerator ¶
type CGenerator struct { PlainC bool LangVersion int // -1: unset, cpp: 11, 14, 17 Optional string // std::optional, std::unique_ptr, std::shared_ptr EmptyStringAsNull bool NaNAsNull bool }
func (*CGenerator) BindingFiles ¶ added in v0.10.0
func (gen *CGenerator) BindingFiles(forFile string, options generator.Options) []string
BindingFiles returns names of binding files for the given entity file.
func (CGenerator) IsGeneratedFile ¶
func (CGenerator) IsGeneratedFile(file string) bool
func (CGenerator) IsSourceFile ¶ added in v0.12.0
func (CGenerator) IsSourceFile(file string) bool
func (*CGenerator) ModelFile ¶
func (gen *CGenerator) ModelFile(forFile string, options generator.Options) string
ModelFile returns the model GO file for the given JSON info file path
func (*CGenerator) ParseSource ¶
func (gen *CGenerator) ParseSource(sourceFile string) (*model.ModelInfo, error)
func (*CGenerator) WriteBindingFiles ¶
func (*CGenerator) WriteModelBindingFile ¶
Click to show internal directories.
Click to hide internal directories.