Documentation
¶
Index ¶
- Variables
- func RegisterExporter(ext string, e Exporter)
- func RegisterImporter(ext string, i Importer)
- type CSVExporter
- type Exporter
- type Importer
- type Item
- type Items
- func (items Items) Count() int
- func (items Items) Equal(items2 Items) bool
- func (items Items) FilterByRarity(rarities ...Rarity) Items
- func (items Items) FilterByUID(uid string) Items
- func (items Items) FilterByUIDAndWishType(uid string, wishTypes ...Type) Items
- func (items Items) FilterByWishType(wishTypes ...Type) Items
- func (items Items) Len() int
- func (items Items) Less(i, j int) bool
- func (items Items) Save(filename string) error
- func (items Items) Swap(i, j int)
- func (items Items) ToCSVRecords() [][]string
- func (items Items) Unique() Items
- type JSONExporter
- type JSONImporter
- type Rarity
- type RawItem
- type TOMLExporter
- type TOMLImporter
- type Type
- type XLSXExporter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Types = []Type{BeginnersWish, StandardWish, CharacterEventWish, WeaponEventWish, CharacterEventWish2} )
Functions ¶
func RegisterExporter ¶
func RegisterImporter ¶
Types ¶
type CSVExporter ¶
type CSVExporter struct{}
type Item ¶
type Item struct { *RawItem // contains filtered or unexported fields }
func (Item) ColoredString ¶
type Items ¶
type Items []Item
func LoadItemsIfExits ¶
func (Items) FilterByRarity ¶
func (Items) FilterByUID ¶
func (Items) FilterByUIDAndWishType ¶
func (Items) FilterByWishType ¶
func (Items) ToCSVRecords ¶
type JSONExporter ¶
type JSONExporter struct{}
type JSONImporter ¶
type JSONImporter struct{}
type RawItem ¶
type RawItem struct { UID string `json:"uid" toml:"uid" csv:"UID"` WishType string `json:"gacha_type" toml:"gacha_type" csv:"Wish Type"` ItemID string `json:"item_id" toml:"item_id" csv:"Item ID"` Count string `json:"count" toml:"count" csv:"Count"` Time string `json:"time" toml:"time" csv:"Time"` Name string `json:"name" toml:"name" csv:"Name"` Lang string `json:"lang" toml:"lang" csv:"Language"` ItemType string `json:"item_type" toml:"item_type" csv:"Item Type"` Rarity string `json:"rank_type" toml:"rank_type" csv:"Rarity"` ID string `json:"id" toml:"id" csv:"ID"` }
func (*RawItem) ToCSVHeader ¶
func (*RawItem) ToCSVRecord ¶
type TOMLExporter ¶
type TOMLExporter struct{}
type TOMLImporter ¶
type TOMLImporter struct{}
type XLSXExporter ¶
type XLSXExporter struct{}
Click to show internal directories.
Click to hide internal directories.