{"id":34201520,"url":"https://github.com/fezcode/go-tournament-brackets","last_synced_at":"2026-03-11T07:30:59.806Z","repository":{"id":318735459,"uuid":"1075602656","full_name":"fezcode/go-tournament-brackets","owner":"fezcode","description":"A Go library (and an executable) for creating and running tournaments.","archived":false,"fork":false,"pushed_at":"2025-10-14T09:15:58.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-18T21:20:48.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fezcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-13T18:15:11.000Z","updated_at":"2025-12-10T16:57:44.000Z","dependencies_parsed_at":"2025-10-14T09:20:25.725Z","dependency_job_id":"97b669c3-47d4-42ca-9256-8fa1adc0df76","html_url":"https://github.com/fezcode/go-tournament-brackets","commit_stats":null,"previous_names":["fezcode/go-tournament-brackets"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fezcode/go-tournament-brackets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fezcode%2Fgo-tournament-brackets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fezcode%2Fgo-tournament-brackets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fezcode%2Fgo-tournament-brackets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fezcode%2Fgo-tournament-brackets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fezcode","download_url":"https://codeload.github.com/fezcode/go-tournament-brackets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fezcode%2Fgo-tournament-brackets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-15T18:33:40.614Z","updated_at":"2026-03-11T07:30:59.799Z","avatar_url":"https://github.com/fezcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Tournament Bracket Generator Lib\n\nA simple and flexible Go library for creating and managing single-elimination tournament brackets.\nThis project also includes a fully interactive command-line application to run a tournament from start to finish.\n\n## What Is It?\nThis project provides two main components:\n\n* A Go Library: A set of data models and functions that you can import into your own Go applications to handle tournament logic programmatically.\nIt correctly calculates rounds, match-ups, and byes for any number of participants.\n\n* An Interactive CLI: A runnable application (main.go) that uses the library to provide a step-by-step command-line interface.\n* You can enter participant names, and the app will generate a bracket and then prompt you for the winner of each match until a champion is crowned.\n\n## Features\n\n* Single-Elimination Brackets: Generates a standard single-elimination tournament structure.\n* Automatic Bye Handling: Automatically calculates and assigns byes for a number of participants that is not a power of two.\n* Interactive CLI: Comes with a ready-to-run terminal application to manage a tournament in real-time.\n* ASCII Bracket Display: Prints the current state of the tournament bracket to the console, so you can easily track matchups and winners.\n* Simple and Extensible: Built with clear and straightforward data models, making it easy to extend with new features.\n\n## Usage\n### As a Library\n\nTo use this package in your own Go project, you can install it with `go get`:\n\n`go get github.com/fezcode/go-tournament-brackets`\n\nThen, you can import and use it in your code:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/fezcode/go-tournament-brackets\"\n)\n\nfunc main() {\nparticipants := []string{\"Team Alpha\", \"Team Bravo\", \"Team Charlie\", \"Team Delta\", \"Team Echo\"}\n\n    // Create a new tournament\n    tourney, err := tournament.NewTournament(\"My Cup\", tournament.SingleElimination, participants, nil)\n    if err != nil {\n        panic(err)\n    }\n\n    // Print the initial bracket state\n    tourney.PrintAscii()\n\n    // From here, you can programmatically set winners and advance them\n    // For example, to set Team Alpha (ID: 1) as the winner of their first match:\n    // tourney.SetWinner(roundIndex, matchIndex, 1)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffezcode%2Fgo-tournament-brackets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffezcode%2Fgo-tournament-brackets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffezcode%2Fgo-tournament-brackets/lists"}