Code convention
This commit is contained in:
parent
1331134316
commit
5e9a45f74a
7 changed files with 119 additions and 121 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
@ -47,6 +48,9 @@ var mailDomains = map[string]string{
|
|||
}
|
||||
|
||||
var TemplateFuncs template.FuncMap = map[string]interface{}{
|
||||
"GoVer": func() string {
|
||||
return runtime.Version()
|
||||
},
|
||||
"AppName": func() string {
|
||||
return AppName
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue