mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-12 07:45:37 +08:00
refactor: 注释优化
This commit is contained in:
@@ -16,8 +16,8 @@ func parse(t *template.Template, vars any) (string, error) {
|
||||
}
|
||||
|
||||
// 模板字符串解析
|
||||
// @param str 模板字符串
|
||||
// @param vars 参数变量
|
||||
// - str 模板字符串
|
||||
// - vars 参数变量
|
||||
func TemplateParse(str string, vars any) (string, error) {
|
||||
tmpl, err := template.New("tmpl").Parse(str)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user