diff options
Diffstat (limited to 'replacer.go')
-rw-r--r-- | replacer.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/replacer.go b/replacer.go index eac2080..86cd729 100644 --- a/replacer.go +++ b/replacer.go @@ -276,6 +276,8 @@ func globalDefaultReplacements(key string) (interface{}, bool) { return runtime.GOOS, true case "system.arch": return runtime.GOARCH, true + case "time.now": + return nowFunc(), true case "time.now.common_log": return nowFunc().Format("02/Jan/2006:15:04:05 -0700"), true case "time.now.year": |