Fix golint in ./publisher

This commit is contained in:
Richard Barnes 2015-10-04 20:45:33 -04:00
parent 498deeb518
commit 4c95fb7495
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import (
"github.com/letsencrypt/boulder/sa"
)
// LogDescription tells you how to connect to a log and verify its statements.
type LogDescription struct {
ID string
URI string
@ -35,6 +36,9 @@ type rawLogDescription struct {
PublicKey string `json:"key"`
}
// UnmarshalJSON parses a simple JSON format for log descriptions. Both the
// URI and the public key are expected to be strings. The public key is a
// base64-encoded PKIX public key structure.
func (logDesc *LogDescription) UnmarshalJSON(data []byte) error {
var rawLogDesc rawLogDescription
if err := json.Unmarshal(data, &rawLogDesc); err != nil {