initial
This commit is contained in:
14
gotemplate
Normal file
14
gotemplate
Normal 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}}
|
||||
}
|
Reference in New Issue
Block a user