aboutsummaryrefslogtreecommitdiffstats
path: root/core.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-18 23:56:43 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-18 23:56:55 -0400
commit5c860476dad6d007bd3eb6cec105be20cef7b31a (patch)
tree90bf33dea0f511547ee8660602574313c484686e /core.go
parent3b03a7a42ca8d71f8a6c68133cadb6faf358f712 (diff)
downloadbommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.tar.gz
bommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.zip
container for marshaling
Diffstat (limited to 'core.go')
-rw-r--r--core.go4
1 files changed, 2 insertions, 2 deletions
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