Versions in this module Expand all Collapse all v0 v0.2.2 Apr 20, 2026 v0.2.1 Apr 20, 2026 v0.2.0 Apr 20, 2026 Changes in this version + type Directive struct + Params map[string]string + Verb string type Document + ChesspairingDirectives []Directive v0.1.3 Apr 17, 2026 v0.1.2 Apr 13, 2026 v0.1.1 Apr 12, 2026 v0.1.0 Apr 11, 2026 Changes in this version + func Write(w io.Writer, doc *Document) error + type AbsenceRecord struct + Players []int + Round int + Type string + type AccelerationRecord struct + FirstPlayer int + FirstRound int + GamePoints float64 + LastPlayer int + LastRound int + MatchPoints float64 + Raw string + type Color int + const ColorBlack + const ColorNone + const ColorWhite + func (c *Color) UnmarshalJSON(data []byte) error + func (c Color) Char() byte + func (c Color) IsValid() bool + func (c Color) MarshalJSON() ([]byte, error) + func (c Color) String() string + type DetailedTeamResult struct + GamePoints float64 + MatchPoints float64 + Raw string + Rounds []DetailedTeamRound + TeamName string + TeamNumber int + type DetailedTeamRound struct + BoardOrder string + ByeType string + Color string + Opponent int + Results string + type Document struct + Absences []AbsenceRecord + Acceleration []string + Accelerations26 []AccelerationRecord + AllowRepeatPairings *bool + ChiefArbiter string + City string + CodedTournamentType string + ColorBalance *bool + ColorPreferenceType string + Comments []string + Cycles int + DeputyArbiter string + DeputyArbiters []string + DetailedTeamResults []DetailedTeamResult + EncodedTimeControl string + EndDate string + Federation string + ForbiddenPairs []ForbiddenPair + ForbiddenPairs26 []ForbiddenPairRecord + InitialColor string + InitialColor26 string + MaxiTournament *bool + MinRoundsBetweenRepeats int + NRSRecords []NRSRecord + Name string + NewTeams []NewTeamLine + NumPlayers int + NumRated int + NumTeams int + OldAbsentForfeits []OldAbsentForfeit + Other []RawLine + Players []PlayerLine + PrimaryScore string + RoundDates []string + ScoringSystem string + SimpleTeamResults []SimpleTeamResult + StartDate string + StartingRankMethod string + TeamInitialColor string + TeamRoundData []TeamRoundEntry + TeamRoundScores []TeamRoundScoreEntry + TeamScoringSystem string + Teams []TeamLine + TieBreakDef string + TimeControl string + TotalRounds int + TotalRounds26 int + TournamentType string + func FromTournamentState(state *chesspairing.TournamentState) (*Document, map[string]int) + func Read(r io.Reader) (*Document, error) + func (doc *Document) EffectiveInitialColor() string + func (doc *Document) EffectiveTotalRounds() int + func (doc *Document) ToTournamentState() (*chesspairing.TournamentState, error) + func (doc *Document) Validate(profile ValidationProfile) []ValidationIssue + type ForbiddenPair struct + Player1 int + Player2 int + type ForbiddenPairRecord struct + FirstRound int + LastRound int + Players []int + Raw string + type NRSRecord struct + BirthDate string + Federation string + Name string + NationalID string + NationalRating int + Raw string + StartNumber int + SubFederation string + Title string + type NewTeamLine struct + AvgRating float64 + Federation string + GamePoints float64 + MatchPoints float64 + Members []int + Rank int + TeamName string + TeamNumber int + type OldAbsentForfeit struct + BlackTeam int + ResultType string + Round int + WhiteTeam int + type ParseError struct + Code string + Line int + Message string + func (e *ParseError) Error() string + type PlayerLine struct + BirthDate string + Federation string + FideID string + Name string + Points float64 + Rank int + Rating int + Rounds []RoundResult + Sex string + StartNumber int + Title string + type RawLine struct + Code string + Data string + type ResultCode int + const ResultDraw + const ResultDrawByDefault + const ResultForfeitLoss + const ResultForfeitWin + const ResultFullBye + const ResultHalfBye + const ResultLoss + const ResultLossByDefault + const ResultNotPlayed + const ResultUnpaired + const ResultWin + const ResultWinByDefault + const ResultZeroBye + func (rc *ResultCode) UnmarshalJSON(data []byte) error + func (rc ResultCode) Char() byte + func (rc ResultCode) IsValid() bool + func (rc ResultCode) MarshalJSON() ([]byte, error) + func (rc ResultCode) String() string + type RoundResult struct + Color Color + Opponent int + Result ResultCode + type Severity int + const SeverityError + const SeverityWarning + func (s Severity) String() string + type SimpleTeamResult struct + GamePoints float64 + MatchPoints float64 + Raw string + Rounds []SimpleTeamRound + TeamName string + TeamNumber int + type SimpleTeamRound struct + ByeType string + Color string + Forfeit bool + GamePoints float64 + Opponent int + type TeamLine struct + Members []int + TeamName string + TeamNumber int + type TeamRoundEntry struct + Boards []int + Round int + Team1 int + Team2 int + type TeamRoundScoreEntry struct + GamePoints float64 + Raw string + Scores []string + TeamNumber int + type ValidationIssue struct + Field string + Message string + Severity Severity + type ValidationProfile int + const ValidateFIDE + const ValidateGeneral + const ValidatePairingEngine