players

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write added in v0.5.0

func Write(filepath string, ps []Player) error

Types

type Player

type Player struct {
	Name    string
	Country string
	Team    string
}

func FromFile

func FromFile(filepath string) []Player

FromFile attempts to read players from csv file. If file does not exist, it returns an empty slice.

func (*Player) MatchesName

func (p *Player) MatchesName(query string) bool

Jump to

Keyboard shortcuts

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