Documentation ¶ Index ¶ func LoadPlayersFromFile(ctx context.Context, name string, cb func(ctx context.Context, p Player) error) error type Player func (p Player) MarshalText() (text []byte, err error) func (p Player) String() string func (p *Player) UnmarshalText(text []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadPlayersFromFile ¶ func LoadPlayersFromFile(ctx context.Context, name string, cb func(ctx context.Context, p Player) error) error Types ¶ type Player ¶ type Player struct { PID int Nick string } func (Player) MarshalText ¶ func (p Player) MarshalText() (text []byte, err error) func (Player) String ¶ func (p Player) String() string func (*Player) UnmarshalText ¶ func (p *Player) UnmarshalText(text []byte) error Source Files ¶ View all Source files dat.goplayer.go Click to show internal directories. Click to hide internal directories.