34 lines
699 B
Go
34 lines
699 B
Go
|
package game
|
||
|
|
||
|
// func findGameByID(id string) SteamGame {
|
||
|
// for _, game := range GamesList {
|
||
|
// if game.GameId == id {
|
||
|
// return game
|
||
|
// }
|
||
|
// }
|
||
|
// var temp SteamGame = SteamGame{}
|
||
|
// return temp
|
||
|
// }
|
||
|
|
||
|
// func findSteamGameByID(id string) SteamGame {
|
||
|
// for _, game := range localGames.St {
|
||
|
// if game.GameId == id {
|
||
|
// return game
|
||
|
// }
|
||
|
// }
|
||
|
// var game SteamGame = SteamGame{}
|
||
|
// return game
|
||
|
// }
|
||
|
|
||
|
func FindGameByID() {}
|
||
|
|
||
|
func GetJSGameInterface(game SteamGame) JSGameInterface {
|
||
|
newInterface := JSGameInterface{
|
||
|
GameID: game.GameId,
|
||
|
Title: game.Assets.Title,
|
||
|
Image: game.Assets.Image,
|
||
|
Description: game.Assets.Description,
|
||
|
}
|
||
|
return newInterface
|
||
|
}
|