goã«æ¨æºã§ã¤ãã¦ãtemplateããã±ã¼ã¸ã¯ä¾¿å©ãªã®ã ãã©ãããã¥ã¢ã«ãé·ãããã®ã§ãã使ãæ©è½ã ãã¾ã¨ãã¦ããã ããããã ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ãæ¨æºåãã¦ã»ããã package main import ( "os" "text/template" ) func main() { tmpl := "Hello, {{.template}}!" t := template.New("t") template.Must(t.Parse(tmpl)) t.Execute(os.Stdout, map[string]string{"template": "World"}) }
{{#tags}}- {{label}}
{{/tags}}