emit

package
v0.0.0-...-0e8a0e8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratedFileNameArr

func GeneratedFileNameArr(packageObj *semantic.PackageObj) []string

Types

type FileObj

type FileObj struct {
	RelativePath string
	DataArr      []byte
}

func Build

func Build(packageObj *semantic.PackageObj) ([]FileObj, error)

type PresetTemplateObj

type PresetTemplateObj struct {
	TitleText      string
	NameText       string
	SourcePathText string
	PresentFlag    bool
	FullFlag       bool
	YAMLText       string
	JSONText       string
	HJSONText      string
	YAMLStart      int
	YAMLLen        int
	JSONStart      int
	JSONLen        int
	HJSONStart     int
	HJSONLen       int
}

type TemplateDataObj

type TemplateDataObj struct {
	PackageName            string
	RootObj                *semantic.BranchObj
	FieldObjArr            []*semantic.FieldObj
	EnumObjArr             []*schema.EnumObj
	HasYAML                bool
	HasJSON                bool
	HasHJSON               bool
	HasCLI                 bool
	HasValidate            bool
	HasRender              bool
	HasPresets             bool
	HasInterfaces          bool
	HasSize                bool
	HasDuration            bool
	HasMapAny              bool
	HasTextSlice           bool
	PrimaryFormatTitle     string
	TypeImportTextArr      []string
	AccessorImportTextArr  []string
	FieldMetaImportTextArr []string
	RuntimeImportTextArr   []string
	FlagImportTextArr      []string
	ValidateImportTextArr  []string
	PresetObjArr           []PresetTemplateObj
	PresetDataArr          []byte
}

Jump to

Keyboard shortcuts

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