feat: publish complete
This commit is contained in:
@@ -12,8 +12,9 @@ import (
|
||||
type Store []UUIDMap
|
||||
|
||||
type UUIDMap struct {
|
||||
UUID string
|
||||
Name string
|
||||
UUID string
|
||||
Name string
|
||||
Price uint
|
||||
}
|
||||
|
||||
func NewStore(path string) (Store, error) {
|
||||
@@ -55,8 +56,8 @@ func (s Store) Save(path string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s Store) Add(uuid, name string) {
|
||||
s = append(s, UUIDMap{UUID: uuid, Name: name})
|
||||
func (s Store) Add(uuid, name string, price uint) {
|
||||
s = append(s, UUIDMap{UUID: uuid, Name: name, Price: price})
|
||||
}
|
||||
|
||||
func (s Store) UUIDs() []string {
|
||||
|
||||
Reference in New Issue
Block a user