This commit is contained in:
2017-02-17 22:09:37 +01:00
commit 78e8ba2579
4 changed files with 104 additions and 0 deletions

14
gotemplate Normal file
View File

@ -0,0 +1,14 @@
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}}
}