utils

package
v0.0.0-...-734a412 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

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

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

Types

type TemplateParser

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

func NewTemplateParser() TemplateParser

type TemplateValue

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