Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
type Inventory struct {
Material string
Count uint
sweaters := Inventory{"wool", 17}
tmpl, _ := template.New("test").Parse("{{.Count}} items are made of {{.Material}}")
tmpl.Execute(os.Stdout, sweaters)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment