diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:56:43 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:56:55 -0400 |
commit | 5c860476dad6d007bd3eb6cec105be20cef7b31a (patch) | |
tree | 90bf33dea0f511547ee8660602574313c484686e /core.go | |
parent | 3b03a7a42ca8d71f8a6c68133cadb6faf358f712 (diff) | |
download | bommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.tar.gz bommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.zip |
container for marshaling
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |