Files
vRp.CD2g_test/planner/pce/tmpls

Tmpls

Go doc

暂无介绍...

目录导航

列出了该 package 下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️

展开 / 折叠目录导航

包级函数定义

函数名称 描述
NewGolang 创建一个 Golang 配置导出模板
NewJSON 暂无描述...

类型定义

类型 名称 描述
STRUCT Golang 配置导出模板
STRUCT JSON 暂无描述...

详情信息

func NewGolang(packageName string) *Golang

创建一个 Golang 配置导出模板


func NewJSON() *JSON


Golang STRUCT

配置导出模板

type Golang struct {
	Package   string
	Templates []*pce.TmplStruct
}

func (*Golang) Render(templates ...*pce.TmplStruct) ( string, error)


func (*Golang) GetVariable(config *pce.TmplStruct) string


func (*Golang) GetConfigName(config *pce.TmplStruct) string


func (*Golang) HasIndex(config *pce.TmplStruct) bool


JSON STRUCT

type JSON struct {
	jsonIter.API
}

func (*JSON) Render(data map[any]any) ( string, error)