Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-06-27 19:06:52 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-06-27 19:06:52 +0300
commit3a6dc6d3f423c4acb79ef21b5a76e616fa2c9477 (patch)
tree901059ee05e93c2991f0389dce0c26ca7b0e6ce2 /commands
parent6cd2110ab295f598907a18da91e34d31407c1d9d (diff)
modules: Use value type for module.Time
Which is in line with how we do it elsewhere.
Diffstat (limited to 'commands')
-rw-r--r--commands/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/config.go b/commands/config.go
index 2b2920cdd..87c8c90d6 100644
--- a/commands/config.go
+++ b/commands/config.go
@@ -147,7 +147,7 @@ func (m *modMounts) MarshalJSON() ([]byte, error) {
return json.Marshal(&struct {
Path string `json:"path"`
Version string `json:"version"`
- Time *time.Time `json:"time"`
+ Time time.Time `json:"time"`
Owner string `json:"owner"`
Dir string `json:"dir"`
Meta map[string]interface{} `json:"meta"`
@@ -169,7 +169,7 @@ func (m *modMounts) MarshalJSON() ([]byte, error) {
return json.Marshal(&struct {
Path string `json:"path"`
Version string `json:"version"`
- Time *time.Time `json:"time"`
+ Time time.Time `json:"time"`
Owner string `json:"owner"`
Dir string `json:"dir"`
Mounts []modMount `json:"mounts"`