diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-09-20 15:36:30 +0200 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-09-20 15:36:30 +0200 |
commit | b0ecc94ef69d489dcc775038a0c6f65c1c960c8e (patch) | |
tree | 48b0873c3fa211cbbb9bbf0c0ec22f140c08ad43 /core.go | |
parent | c3591d04490d10b7a05e1aefff903430fecc2ba8 (diff) | |
download | bommom-b0ecc94ef69d489dcc775038a0c6f65c1c960c8e.tar.gz bommom-b0ecc94ef69d489dcc775038a0c6f65c1c960c8e.zip |
WIP
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -15,22 +15,22 @@ type Offer struct { Sku string `json:"sku"` Url string `json:"distributor_url"` Comment string `json:"comment"` - Available uint32 `json:"avail"` + Available uint32 `json:"avail"` Prices []OfferPrice `json:"prices"` } type LineItem struct { - Manufacturer string `json:"manufacturer"` - Mpn string `json:"mpn"` - Description string `json:"description"` - FormFactor string `json:"form_factor"` // type:string - Specs string `json:"specs"` // comma seperated list - Comment string `json:"comment"` - Tag string `json:"tag"` // comma seperated list - Category string `json:"category"` // hierarchy as comma seperated list - Elements []string `json:"elements"` - Offers []Offer `json:"offers"` - AggregateInfo map[string]string `json:"miscinfo"` + Manufacturer string `json:"manufacturer"` + Mpn string `json:"mpn"` + Description string `json:"description"` + FormFactor string `json:"form_factor"` // type:string + Specs string `json:"specs"` // comma seperated list + Comment string `json:"comment"` + Tag string `json:"tag"` // comma seperated list + Category string `json:"category"` // hierarchy as comma seperated list + Elements []string `json:"elements"` + Offers []Offer `json:"offers"` + AggregateInfo map[string]string `json:"miscinfo"` } func (li *LineItem) Id() string { @@ -117,6 +117,6 @@ func makeTestBom() (*BomMeta, *Bom) { b.AddLineItem(&li) b.AddLineItem(&li) b.AddLineItem(&li) - bm := &BomMeta{Name: "Some Bom", Owner: "Some Owner", Description: "This is such a thing!", HeadVersion: b.Version, Homepage: "http://bommom.com", IsPublicView: true, IsPublicEdit: false} + bm := &BomMeta{Name: "Some Bom", Owner: "Some Owner", Description: "This is such a thing!", HeadVersion: b.Version, Homepage: "http://bommom.com", IsPublicView: true, IsPublicEdit: false} return bm, b } |