17 lines
224 B
Go
17 lines
224 B
Go
package text
|
|
|
|
import (
|
|
"text/template"
|
|
)
|
|
|
|
var Template *template.Template
|
|
|
|
func init() {
|
|
Template = load()
|
|
}
|
|
|
|
func load() *template.Template {
|
|
t := template.Must(template.ParseGlob("templates/text/*.gotmpl"))
|
|
return t
|
|
}
|