24 lines
274 B
Go
24 lines
274 B
Go
package main
|
|
|
|
import (
|
|
"html/template"
|
|
)
|
|
|
|
var (
|
|
debugMode bool = true
|
|
funcs = template.FuncMap{
|
|
"sub": func(a, b int) int {
|
|
return a - b
|
|
},
|
|
"add": func(a, b int) int {
|
|
return a + b
|
|
},
|
|
}
|
|
)
|
|
|
|
func max(a, b int) int {
|
|
if a > b {
|
|
return a
|
|
}
|
|
return b
|
|
}
|