cgenerator

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGenerator

type CGenerator struct {
	OutPath string
	PlainC  bool
}

func (*CGenerator) BindingFile

func (gen *CGenerator) BindingFile(forFile string) string

BindingFile returns a name of the binding file for the given entity source file.

func (CGenerator) IsGeneratedFile

func (CGenerator) IsGeneratedFile(file string) bool

func (*CGenerator) ModelFile

func (gen *CGenerator) ModelFile(forFile string) 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 (gen *CGenerator) WriteBindingFiles(sourceFile string, _ generator.Options, mergedModel *model.ModelInfo) error

func (*CGenerator) WriteModelBindingFile

func (gen *CGenerator) WriteModelBindingFile(options generator.Options, mergedModel *model.ModelInfo) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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