Fixed linter errors

This commit is contained in:
2019-09-16 08:17:20 +09:00
parent 47e9c39c70
commit 1d15f441d1
8 changed files with 26 additions and 54 deletions

View File

@ -21,6 +21,7 @@ const (
// ShopItem is a purchasable item in the shop.
type ShopItem struct {
ID string `json:"id" primary:"true"`
Name string `json:"name"`
Description string `json:"description"`
Price uint `json:"price"`
@ -28,8 +29,11 @@ type ShopItem struct {
Rarity string `json:"rarity"`
Order int `json:"order"`
Consumable bool `json:"consumable"`
}
hasID
// GetID returns the ID.
func (item *ShopItem) GetID() string {
return item.ID
}
// GetShopItem ...