修复缓存
Build docker and publish / build (20.15.1) (push) Successful in 7m26s

This commit is contained in:
2026-03-06 21:58:29 -08:00
parent 19932bb9f7
commit 4d913c1728
175 changed files with 437 additions and 12104 deletions
-17
View File
@@ -1,17 +0,0 @@
package templatex
import "testing"
func TestRenderToString(t *testing.T) {
tmpl := "hello {{.Name}}"
data := map[string]interface{}{
"Name": "world",
}
got, err := RenderToString(tmpl, data)
if err != nil {
t.Fatalf("RenderToString() error = %v", err)
return
}
want := "hello world"
t.Logf("got: %v, want: %v", got, want)
}