Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. type Inventory struct {
  2. Material string
  3. Count uint
  4. }
  5. sweaters := Inventory{"wool", 17}
  6. tmpl, _ := template.New("test").Parse("{{.Count}} items are made of {{.Material}}")
  7. tmpl.Execute(os.Stdout, sweaters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement