Skip to content

1.2.0

Compare
Choose a tag to compare
@nicksnyder nicksnyder released this 18 Aug 03:34

Template data may now be passed into a Tfunc as a struct (previously only maps were supported).

// These will print the same thing
fmt.Println(T("person_greeting", map[string]interface{}{"Person": "Bob"}))
fmt.Println(T("person_greeting", struct{ Person string }{Person: "Bob"}))

New language support

  • Thai (th)

Thanks to those who contributed!
@parkr @ExUltima