generator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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

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

)

Variables

This section is empty.

Functions

func GenerateCodeForType

func GenerateCodeForType(v any, tpName string) string

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 WriteGeneratorFile

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

func WriteTypeHashFile

func WriteTypeHashFile(fpath string, gData GenData) error

Types

type GenData

type GenData struct {
	PkgName string

	Types []GenDataTypeInfo
}

type GenDataTypeInfo

type GenDataTypeInfo struct {
	FuncCode string
}

Jump to

Keyboard shortcuts

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