1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 14:42:26 +08:00
This commit is contained in:
houseme
2024-07-19 12:04:04 +08:00
parent ba0a1477eb
commit d8fde54f2d
118 changed files with 974 additions and 867 deletions

View File

@@ -5,7 +5,7 @@ import (
"strings"
)
// Template 对字符串中的和mapkey相同的字符串进行模板替换 仅支持 形如: {name}
// Template 对字符串中的和 mapkey 相同的字符串进行模板替换 仅支持 形如{name}
func Template(source string, data map[string]interface{}) string {
sourceCopy := &source
for k, val := range data {