diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2014-11-04 17:43:14 +0100 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-11-13 12:41:00 -0500 |
commit | fdae09070bd2a64671ef004ef8d9d89c1298a900 (patch) | |
tree | 46637072672e2bf6f84c00cc6aab20459cb4f481 /commands/version.go | |
parent | e127a5cb7d91aabc3df36e70123967a35df7aabf (diff) |
Params map has string as key
Related to issue #540 and commit 3c22ca7c84456b19f2a017719b1533902594e672
Diffstat (limited to 'commands/version.go')
-rw-r--r-- | commands/version.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/version.go b/commands/version.go index c65e74f87..0ce73c4d6 100644 --- a/commands/version.go +++ b/commands/version.go @@ -54,7 +54,7 @@ var version = &cobra.Command{ // setBuildDate checks the ModTime of the Hugo executable and returns it as a // formatted string. This assumes that the executable name is Hugo, if it does -// not exist, an empty string will be returned. This is only called if the +// not exist, an empty string will be returned. This is only called if the // buildDate wasn't set during compile time. // // osext is used for cross-platform. @@ -88,11 +88,10 @@ func getDateFormat() string { if params == nil { return time.RFC3339 } - parms := params.(map[interface{}]interface{}) + parms := params.(map[string]interface{}) layout := parms["DateFormat"] if layout == nil || layout == "" { return time.RFC3339 } return layout.(string) } - |