Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsGameGeneral ¶
func ContainsGameGeneral(listForCheck []GameGeneral, gameForCheck GameGeneral) bool
func GetIndexByGlobalId ¶
func GetIndexByGlobalId(games []GameGeneral, globalId string) (outIndex int)
Types ¶
type GameGeneral ¶
type GameGeneral struct { GlobalID string `json:"GlobalID"` // main filed (!) ST125 - steam, 125`th in steam games list, GG - gog, GB - gabestore Name string `json:"Name"` // main filed (!) HeaderImageURL string `json:"HeaderImageURL"` IsFree bool `json:"IsFree"` Discount int64 `json:"Discount"` // main filed (!) Price int64 `json:"Price"` // main filed (!) Link string `json:"Link"` Source string `json:"Source"` // main filed (!) Metacritic int64 `json:"Metacritic"` SteamID int64 `json:"SteamID"` // main filed (!) IsSteamBundle bool `json:"IsSteamBundle"` SteamBundle SteamBundle `json:"SteamBundle"` AlreadyPublished bool `json:"AlreadyPublished"` // main filed (!) }
func MergeGameLists ¶
func MergeGameLists(oldList []GameGeneral, newList []GameGeneral) (mergedList []GameGeneral)
type SteamBundle ¶
type SteamBundle []int
Click to show internal directories.
Click to hide internal directories.