package helpers
import (
"gitlab.com/pcanilho/go-jira"
"time"
)
var customFuncMap = map[string]interface{}{
"timeFormat": func(t jira.Time) string {
return time.Time(t).Format(time.RFC850)
},
}
func GenerateTemplateFuncMap(initialMap map[string]interface{}) map[string]interface{} {
if initialMap == nil {
return customFuncMap
}
for k, fn := range customFuncMap {
initialMap[k] = fn
}
return initialMap
}
|
The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |