From 044fae60a04c06b622554b9f2e9c5f61233355cc Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Mon, 10 Apr 2017 14:34:09 +0100 Subject: Add comment for exported method --- server/store/store.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/store/store.go b/server/store/store.go index f14e79f..b200e81 100644 --- a/server/store/store.go +++ b/server/store/store.go @@ -44,6 +44,9 @@ type CertRecord struct { Raw string `json:"-" db:"raw_key"` } +// MarshalJSON implements the json.Marshaler interface for the CreatedAt and +// Expires fields. +// The resulting string looks like "2017-04-11 10:00:00 +0000" func (c *CertRecord) MarshalJSON() ([]byte, error) { type Alias CertRecord f := "2006-01-02 15:04:05 -0700" -- cgit v1.2.3