Guest User

Untitled

a guest
Nov 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. tmpl := template.New("foo_bar").Parse(
  2. `<div id="{{.ID}}"><p>{{.Content}}</p></div>`)
  3. tmpl.Execute(w, struct {
  4. ID string
  5. Content string
  6. }{
  7. ID: "foo",
  8. Content: "bar",
  9. })
Add Comment
Please, Sign In to add comment