utils

package
v0.0.0-...-cd96442 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalText

func UnmarshalText(s string) models.Stage

Types

type Match

type Match struct {
	A     string
	B     string
	Stage models.Stage
	Date  time.Time
}

func LoadMatches

func LoadMatches(path string) []Match

func (*Match) UnmarshalYAML

func (m *Match) UnmarshalYAML(unmarshal func(interface{}) error) error

type Player

type Player struct {
	Name     string
	Country  string
	Number   int
	Position string
}

func LoadPlayers

func LoadPlayers(path string) []Player

type Team

type Team struct {
	Name  string
	Code  string
	Group string
}

func LoadTeams

func LoadTeams(path string) []Team

Jump to

Keyboard shortcuts

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