Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveActive ¶
SaveActive writes the active selection a to the state directory dir, which is made if it is not there. UpdatedAt is set to now, whatever a has in it.
Types ¶
type Active ¶
type Active struct {
ActiveStoreID string `json:"active_store_id,omitempty"`
ActiveGameInstallID int64 `json:"active_game_install_id,omitempty"`
ActiveGameInstallSelector string `json:"active_game_install_selector,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
func LoadActive ¶
LoadActive reads the active selection from the state directory dir. There is none until one is saved, which is an empty Active and not an error, and nothing is made by looking: not the directory, and not the file.
Click to show internal directories.
Click to hide internal directories.