From 3b03a7a42ca8d71f8a6c68133cadb6faf358f712 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 18 Apr 2012 23:18:04 -0400 Subject: refactor BomStub to BomMeta --- core.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index 0ae6da1..74a72b9 100644 --- a/core.go +++ b/core.go @@ -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 + "\"") } -- cgit v1.2.3