tmpls

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Golang

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

Golang 配置导出模板

func NewGolang

func NewGolang(packageName string) *Golang

NewGolang 创建一个 Golang 配置导出模板

func (*Golang) GetConfigName

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

func (*Golang) GetVariable

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

func (*Golang) HasIndex

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

func (*Golang) Render

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

type JSON

type JSON struct {
	jsonIter.API
}

func NewJSON

func NewJSON() *JSON

func (*JSON) Render

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

Jump to

Keyboard shortcuts

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