template

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PongoTL

type PongoTL struct {

	// 替换之后的字符串
	ReplaceAfter string
	// contains filtered or unexported fields
}

模板类

func NewPongTL

func NewPongTL() *PongoTL

实例化一个模板对象

func (*PongoTL) LoadTL

func (p *PongoTL) LoadTL(tl string) error

加载模板

func (*PongoTL) ReplaceTL

func (p *PongoTL) ReplaceTL(data interface{}) error

渲染模板

func (*PongoTL) SaveTL

func (p *PongoTL) SaveTL(path string) error

将渲染后的模板保存

Jump to

Keyboard shortcuts

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