Categorygithub.com/jimysheepman/go-mastergo-tutorialsgo-802-Build-an-application04-command-line-and-project-structure
package
0.0.0-20240716191418-e4412870799f
Repository: https://github.com/jimysheepman/go-master.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AssertPlayerWin allows you to spy on the store's calls to RecordWin.
FileSystemPlayerStoreFromFile creates a PlayerStore from the contents of a JSON file found at path.
NewCLI creates a CLI for playing poker.
NewFileSystemPlayerStore creates a FileSystemPlayerStore initialising the store if needed.
NewLeague creates a league from JSON.
NewPlayerServer creates a PlayerServer with routing configured.
# Structs
CLI helps players through a game of poker.
FileSystemPlayerStore stores players in the filesystem.
Player stores a name with a number of wins.
PlayerServer is a HTTP interface for player information.
StubPlayerStore implements PlayerStore for testing purposes.
# Interfaces
PlayerStore stores score information about players.
# Type aliases
League stores a collection of players.