gen_go

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenRawdataName         = ".gen.go"
	GenLoadName            = "gen_load.gen.go"
	GenRawdataConfFileName = "_conf.gen.go"
	GenInitConfigFileName  = "gen_init.go"
	GenCheckerConf         = "_checker_conf.gen.go"
	GenLoaderName          = "loader.go"
	GenErrName             = "err_array.go"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Package  string
	Name     string
	PriName  string
	Checkers []*CheckerField
}

func NewChecker

func NewChecker(pack, name, priName string) *Checker

type CheckerField

type CheckerField struct {
	ConfName  string
	FieldName string
	Param     string
	PriName   string
}

type GenChecker

type GenChecker struct{}

func (GenChecker) Gen

func (GenChecker) Gen(structModel *model.ConfigData) error

type GenConfigStruct

type GenConfigStruct struct{}

func (*GenConfigStruct) Gen

func (g *GenConfigStruct) Gen(structModel *model.ConfigData) error

type GenGlobalErr

type GenGlobalErr struct{}

func (GenGlobalErr) Gen

func (GenGlobalErr) Gen(packaged, toPath string, configDatas *[]*model.ConfigData) error

type GenGlobalInit

type GenGlobalInit struct{}

func (GenGlobalInit) Gen

func (GenGlobalInit) Gen(packaged, toPath string, configDatas *[]*model.ConfigData) error

type GenGlobalLoad

type GenGlobalLoad struct{}

func (GenGlobalLoad) Gen

func (GenGlobalLoad) Gen(packaged, toPath string, configDatas *[]*model.ConfigData) error

type GenGlobalLoader

type GenGlobalLoader struct{}

func (GenGlobalLoader) Gen

func (GenGlobalLoader) Gen(packaged, toPath string, configDatas *[]*model.ConfigData) error

type GenInit

type GenInit struct {
	Package string
}

func NewGenInit

func NewGenInit(pack string) *GenInit

type GenLoad

type GenLoad struct {
	Package string
	Fields  []*GenLoadField
}

func NewGenLoad

func NewGenLoad(pack string) *GenLoad

type GenLoadField

type GenLoadField struct {
	Name   string
	PriTyp string
}

type GenLoader

type GenLoader struct {
	Package string
}

func NewGenLoader

func NewGenLoader(pack string) *GenLoader

type GenRawdataConf

type GenRawdataConf struct{}

func (GenRawdataConf) Gen

func (GenRawdataConf) Gen(structModel *model.ConfigData) error

type GoField

type GoField struct {
	Name       string
	Kind       string
	Annotation string
	JsonStr    string
}

func NewGoField

func NewGoField(name, kind, annotation, jsonStr string) *GoField

type GoStruct

type GoStruct struct {
	Package string
	Name    string
	Fields  []*GoField
	PriType string
	PriName string
}

func NewGoStruct

func NewGoStruct(pack, name string) *GoStruct

type RawdataConf

type RawdataConf struct {
	Package string
	Name    string
	PriType string
}

func NewRawdataConf

func NewRawdataConf(pack, name, priType string) *RawdataConf

Jump to

Keyboard shortcuts

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