remove unused skill version constant and template variable

This commit is contained in:
John
2026-03-12 20:28:16 +08:00
parent c8fc9b4a3d
commit ad10c231a4
+1 -3
View File
@@ -17,7 +17,6 @@ const (
gfExamplesPath = `/Users/john/Workspace/github/gogf/examples/`
skillsDirPath = `/Users/john/Workspace/github/gogf/skills/skills`
skillTplPath = `SKILL.tpl.md`
skillVersion = "v0.0.1"
)
type SkillTplData struct {
@@ -73,8 +72,7 @@ func updateSkillFileContent(data SkillTplData) {
skillFilePath = gfile.Join(skillsDirPath, skillName, "SKILL.md")
)
skillContent := gstr.ReplaceByMap(skillTplContent, map[string]string{
"{{SKILL_NAME}}": data.SkillName,
"{{SKILL_VERSION}}": skillVersion,
"{{SKILL_NAME}}": data.SkillName,
})
err := gfile.PutContents(skillFilePath, skillContent)
if err != nil {