fide

package
v0.0.0-...-a1b81d3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fide holds information in regards to the FIDE rating lists

Index

Constants

View Source
const (
	// XmlURL refers to the current FIDE rating List in XML
	XmlURL = "https://ratings.fide.com/download/players_list_xml.zip"
	// TxtURL refers to the current FIDE rating List
	TxtURL = "https://ratings.fide.com/download/players_list.zip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FidePlayer

type FidePlayer struct {
	XMLName      xml.Name `xml:"player"`
	Id           int      `xml:"fideid"`
	Name         string   `xml:"name"`
	Country      string   `xml:"country"`
	Sex          string   `xml:"sex"`
	Title        string   `xml:"title"`
	W_title      string   `xml:"w_title"`
	O_title      string   `xml:"o_title"`
	Foa_title    string   `xml:"foa_title"`
	Rating       int      `xml:"rating"`
	Games        int      `xml:"games"`
	K            int      `xml:"k"`
	Rapid_rating int      `xml:"rapid_rating"`
	Rapid_games  int      `xml:"rapid_games"`
	Rapid_k      int      `xml:"rapid_k"`
	Blitz_rating int      `xml:"blitz_rating"`
	Blitz_games  int      `xml:"blitz_games"`
	Blitz_k      int      `xml:"blitz_k"`
	Birthday     string   `xml:"birthday"`
	Flag         string   `xml:"flag"`
}

func (FidePlayer) String

func (p FidePlayer) String() string

func (FidePlayer) StringifiedRecords

func (p FidePlayer) StringifiedRecords() []string

type FidePlayers

type FidePlayers struct {
	XMLName xml.Name     `xml:"playerslist"`
	Players []FidePlayer `xml:"player"`
}

Jump to

Keyboard shortcuts

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