generator

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileTemplate = `` /* 314-byte string literal not displayed */

)
View Source
const (
	GenFileTemplate = `` /* 1123-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func GenerateCodeForType

func GenerateCodeForType(v any, tpName string) (string, string)

func GoRunGenerateForResultFile added in v0.0.5

func GoRunGenerateForResultFile(path string) error

func GoRunGeneratorFile

func GoRunGeneratorFile(gfpath string) error

func MakeGeneratedFilePath

func MakeGeneratedFilePath(srcPath string) string

func MakeGeneratorFilePath

func MakeGeneratorFilePath(srcPath string) string

func RemoveGeneratorFile

func RemoveGeneratorFile(fpath string) error

func WriteEasyHideFile

func WriteEasyHideFile(fpath string, gData GenData) error

func WriteGeneratorFile

func WriteGeneratorFile(fpath string, info parser.Info) error

Types

type GenData

type GenData struct {
	PkgName string

	EasyJSON bool

	Types []GenDataTypeInfo
}

type GenDataTypeInfo

type GenDataTypeInfo struct {
	TypeCode string
	FuncCode string
}

Jump to

Keyboard shortcuts

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