language-subtag-registry/gotemplate

15 lines
242 B
Plaintext
Raw Normal View History

2017-02-17 22:09:37 +01:00
package lang
type language struct {
Code string
Description string
}
var Languages []language
func init() {
{{range .Items}}
Languages = append(Languages, language{Code: "{{.Lang}}", Description: "{{.Description}}"})
{{end}}
}