aboutsummaryrefslogtreecommitdiffstats
path: root/bommom.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 /bommom.go
parent3b03a7a42ca8d71f8a6c68133cadb6faf358f712 (diff)
downloadbommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.zip
bommom-5c860476dad6d007bd3eb6cec105be20cef7b31a.tar.gz
container for marshaling
Diffstat (limited to 'bommom.go')
-rw-r--r--bommom.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/bommom.go b/bommom.go
index 6b62bfa..623e477 100644
--- a/bommom.go
+++ b/bommom.go
@@ -258,9 +258,14 @@ func convertCmd() {
}
if inFormat == "csv" && bs == nil {
// TODO: from inname? if ShortName?
- bs = &BomMeta{Name: "untitled", Owner: anonUser.name}
+ bs = &BomMeta{Name: "untitled",
+ Owner: anonUser.name}
+ b.Version = "unversioned"
}
+ b.Created = time.Now()
+ b.Progeny = "File import from " + inFname + " (" + inFormat + ")"
+
if err := bs.Validate(); err != nil {
log.Fatal("loaded bommeta not valid: " + err.Error())
}