pkg

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckType added in v1.0.35

func CheckType(tp string, value string) bool

func Diff

func Diff(cur, old []string) []string

Diff 计算两个数组中的key变更元素

Types

type TemplateParser added in v1.0.45

type TemplateParser interface {
	// CheckTemplate 检查模板变量
	CheckTemplate(keys []string, template string) error

	// RenderTemplate 渲染模板
	RenderTemplate(bvs []*entity.BusinessValue, rvs []*entity.ResourceValue, format string, content string) (string, error)
}

func NewTemplateParser added in v1.0.45

func NewTemplateParser() TemplateParser

type TemplateValue added in v1.0.45

type TemplateValue struct {
	Value   string
	Exclude bool
}

Jump to

Keyboard shortcuts

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