Skip to content
Snippets Groups Projects
Commit 044fae60 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Add comment for exported method

parent 63123b95
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,9 @@ type CertRecord struct { ...@@ -44,6 +44,9 @@ type CertRecord struct {
Raw string `json:"-" db:"raw_key"` 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) { func (c *CertRecord) MarshalJSON() ([]byte, error) {
type Alias CertRecord type Alias CertRecord
f := "2006-01-02 15:04:05 -0700" f := "2006-01-02 15:04:05 -0700"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment