From 5c860476dad6d007bd3eb6cec105be20cef7b31a Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 18 Apr 2012 23:56:43 -0400 Subject: container for marshaling --- core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index 74a72b9..f7f0555 100644 --- a/core.go +++ b/core.go @@ -41,7 +41,7 @@ type BomMeta struct { Owner string `json:"owner_name"` Description string `json:"description"` HeadVersion string `json:"head_version"` - Homepage *Url `json:"homepage_url"` + Homepage Url `json:"homepage_url"` IsPublicView bool `json:"is_publicview",omitempty` IsPublicEdit bool `json:"is_publicedit",omitempty` } @@ -81,7 +81,7 @@ func (b *Bom) Validate() error { if !isShortName(b.Version) { return Error("version not a ShortName: \"" + b.Version + "\"") } - if &b.Created == nil { + if b.Created.IsZero() { return Error("created timestamp not defined") } return nil -- cgit v1.2.3