1
0
Fork 0
mirror of https://github.com/Luzifer/korvike.git synced 2024-12-20 19:21:17 +00:00
korvike/functions/func_now.go
Knut Ahlers 63d5a27b80
Add 'now' function and function tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-04-17 16:25:59 +02:00

9 lines
152 B
Go

package functions
import "time"
func init() {
registerFunction("now", func(name string, v ...string) string {
return time.Now().Format(name)
})
}