添加了对 proto 的解析支持

This commit is contained in:
2025-09-26 16:16:05 +08:00
parent 1cec74cec7
commit 84149a54de
10 changed files with 528 additions and 4 deletions
+4
View File
@@ -14,6 +14,10 @@ var DefaultFuncMap = template.FuncMap{
"title": strings.Title,
"join": strings.Join,
"list": func(strs []string) string { return strings.Join(strs, ",") },
"cmd2func": func(str string) string {
splits := strings.Split(str, "/")
return splits[len(splits)-1]
},
}
func hd(str []string) string {