bfcodegen

package
v0.0.594 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCharsetIDSpecs

func GenerateCharsetIDSpecs(sourceDir string, destFile string, opt CSIDGenOptions) error

func GenerateEnumSpecs

func GenerateEnumSpecs(sourceDir string, destFile string, opt EnumGenOptions) error

func GenerateIDSpecs

func GenerateIDSpecs(sourceDir string, destFile string, opt IDGenOptions) error

Types

type CSIDDef

type CSIDDef struct {
	File         string
	FileRelative string
	Name         string
	Prefix       string
}

type CSIDGenOptions

type CSIDGenOptions struct {
	DebugOutput *bool
}

type EnumDef

type EnumDef struct {
	File         string
	FileRelative string
	EnumTypeName string
	Type         string
	Values       []EnumDefVal
}

type EnumDefVal

type EnumDefVal struct {
	VarName     string
	Value       string
	Description *string
	Data        *map[string]any
	RawComment  *string
}

type EnumGenOptions

type EnumGenOptions struct {
	DebugOutput *bool
	GoFormat    *bool
}

type IDDef

type IDDef struct {
	File         string
	FileRelative string
	Name         string
}

type IDGenOptions

type IDGenOptions struct {
	DebugOutput *bool
}

Jump to

Keyboard shortcuts

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