game

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GamesJsonFile = "games.json"
)

Variables

This section is empty.

Functions

func GetMpGames

func GetMpGames(jsonFile string) (o string)

Types

type FullGameDetail

type FullGameDetail struct {
	Name            string   `json:"name"`
	Id              int      `json:"id"`
	BackgroundImage string   `json:"background_image"`
	Metacritic      int      `json:"metacritic"`
	Released        string   `json:"released"`
	Platforms       []string `json:"platforms"`
	Genres          []string `json:"genres"`
	Players         int      `json:"players"`
}

FullGameDetail is a more detailed metadata that is needed for TeamUp.

type GamesList

type GamesList []FullGameDetail

func (GamesList) Get

func (l GamesList) Get(name string) (d *FullGameDetail)

func (GamesList) Len

func (l GamesList) Len() int

func (GamesList) Less

func (l GamesList) Less(i, j int) bool

func (GamesList) Swap

func (l GamesList) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL