language-subtag-registry/gotemplate
2017-02-17 22:09:37 +01:00

15 lines
242 B
Plaintext

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}}
}