This commit is contained in:
14
main.go
14
main.go
@@ -43,12 +43,14 @@ func main() {
|
||||
|
||||
templates, err := template.New("undefined.gohtml").
|
||||
Funcs(template.FuncMap{
|
||||
"statusText": http.StatusText,
|
||||
"createDeviceLink": createDeviceLink,
|
||||
"formatMemorySize": formatMemorySize,
|
||||
"formatMemoryPlainSize": formatMemoryPlainSize,
|
||||
"formatType": formatType,
|
||||
"isRamType": isRamType,
|
||||
"statusText": http.StatusText,
|
||||
"createDeviceLink": createDeviceLink,
|
||||
"formatMemorySize": formatMemorySize,
|
||||
"formatMemoryPlainSize": formatMemoryPlainSize,
|
||||
"formatType": formatType,
|
||||
"isRamType": isRamType,
|
||||
"createSelectMenu": createSelectMenu,
|
||||
"createSelectMenuDefault": createSelectMenuDefault,
|
||||
}).
|
||||
ParseFS(templateFS, "templates/*.gohtml")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user