diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:18:04 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:18:04 -0400 |
commit | 3b03a7a42ca8d71f8a6c68133cadb6faf358f712 (patch) | |
tree | 42de27b042058d55132fc76ef01e89e05656cd61 /core.go | |
parent | c40296d848abd8a7478dece2169cab97d5196dfd (diff) | |
download | bommom-3b03a7a42ca8d71f8a6c68133cadb6faf358f712.tar.gz bommom-3b03a7a42ca8d71f8a6c68133cadb6faf358f712.zip |
refactor BomStub to BomMeta
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -34,9 +34,9 @@ func (li *LineItem) Id() string { } // The main anchor of a BOM as a cohesive whole, with a name and permissions. -// Multiple BOMs are associated with a single BomStub; the currently active one +// Multiple BOMs are associated with a single BomMeta; the currently active one // is the 'head'. -type BomStub struct { +type BomMeta struct { Name string `json:"name"` Owner string `json:"owner_name"` Description string `json:"description"` @@ -87,7 +87,7 @@ func (b *Bom) Validate() error { return nil } -func (bs *BomStub) Validate() error { +func (bs *BomMeta) Validate() error { if !isShortName(bs.Name) { return Error("name not a ShortName: \"" + bs.Name + "\"") } |