Documentation
¶
Index ¶
- func AddPlayerDataToSheet(f *excelize.File, players []Player, sanatize bool)
- func AddPoolDataToSheet(f *excelize.File, pools []Pool, sanatize bool)
- func AddPoolsToSheet(f *excelize.File, pools []Pool) error
- func AddPoolsToTree(f *excelize.File, sheetName string, pools []Pool)
- func CalculateDepth(node *Node) int
- func ConvertPlayersToWinners(players []Player, sanatized bool) map[string]MatchWinner
- func CreateNamesToPrint(f *excelize.File, players []Player, sanatized bool)
- func CreateNamesWithPoolToPrint(f *excelize.File, pools []Pool, sanatized bool)
- func CreatePoolMatches(pools []Pool)
- func CreatePoolRoundRobinMatches(pools []Pool)
- func CreateTreeBracket(f *excelize.File, sheet string, col int, startRow int, size int) string
- func FillEstimations(f *excelize.File, numPools int, numPoolMatches int, extraPools int, ...)
- func FillInMatches(f *excelize.File, eliminationMatchRounds [][]*Node)
- func GenerateFinals(pools []Pool, poolWinners int) []string
- func GetBorderStyleBottomLeft(f *excelize.File) int
- func GetBorderStyleLeft(f *excelize.File) int
- func MatchHeader(f *excelize.File, sheetName string, startColName string, poolRow int, ...)
- func PrintLeafNodes(node *Node, f *excelize.File, sheetName string, startCol int, startRow int, ...)
- func PrintPoolMatches(f *excelize.File, pools []Pool, teamMatches int, numWinners int) map[string]MatchWinner
- func PrintTeamEliminationMatches(f *excelize.File, poolMatchWinners map[string]MatchWinner, ...)
- func ReadEntriesFromFile(filePath string) ([]string, error)
- func RemoveDuplicates(input []string) []string
- func RoundToPowerOf2(x, y float64) int
- type Match
- type MatchWinner
- type Node
- type Player
- type Pool
- type RowStack
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlayerDataToSheet ¶ added in v0.3.0
func AddPoolDataToSheet ¶ added in v0.3.0
func CalculateDepth ¶
func ConvertPlayersToWinners ¶ added in v0.3.0
func ConvertPlayersToWinners(players []Player, sanatized bool) map[string]MatchWinner
func CreateNamesToPrint ¶
func CreateNamesWithPoolToPrint ¶ added in v0.3.0
func CreatePoolMatches ¶
func CreatePoolMatches(pools []Pool)
func CreatePoolRoundRobinMatches ¶
func CreatePoolRoundRobinMatches(pools []Pool)
func CreateTreeBracket ¶
func FillEstimations ¶ added in v0.6.0
func FillInMatches ¶
func GenerateFinals ¶
func GetBorderStyleLeft ¶
func MatchHeader ¶
func PrintLeafNodes ¶
func PrintPoolMatches ¶
func PrintTeamEliminationMatches ¶ added in v0.2.0
func ReadEntriesFromFile ¶ added in v0.9.0
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate strings from the input slice and returns a new slice without duplicates.
The function takes a parameter named input, which is a slice of strings. It represents the input slice from which duplicates and empty strings will be removed.
func RoundToPowerOf2 ¶ added in v0.4.0
Types ¶
type MatchWinner ¶
type MatchWinner struct {
// contains filtered or unexported fields
}
type Node ¶
type Node struct {
LeafNode bool
// sheet for Cell Values
SheetName string
// Pool Number or Cell value
LeafVal string
Val int
Left *Node
Right *Node
// contains filtered or unexported fields
}
func CreateBalancedTree ¶
func SubdivideTree ¶ added in v0.4.0
function that subdivides a tree into a specified number of subtrees
type Player ¶
type Player struct {
Name string
DisplayName string
Dojo string
PoolPosition int
// contains filtered or unexported fields
}
func CreatePlayers ¶
type Pool ¶
type Pool struct {
PoolName string
Players []Player
Matches []Match
// contains filtered or unexported fields
}
func CreatePools ¶
type RowStack ¶ added in v0.2.0
type RowStack struct {
// contains filtered or unexported fields
}
func (*RowStack) PushHighest ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.