{"id":23774461,"url":"https://github.com/daanv2/go-f1-library","last_synced_at":"2026-04-04T05:30:16.997Z","repository":{"id":237942877,"uuid":"795542654","full_name":"DaanV2/go-f1-library","owner":"DaanV2","description":"A library to handle game packets from the F1 20xx game.","archived":false,"fork":false,"pushed_at":"2024-07-27T20:24:40.000Z","size":190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T05:57:38.067Z","etag":null,"topics":["f1","f120xx","game","go","golang","library","mit"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/DaanV2/go-f1-library","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/DaanV2.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}},"created_at":"2024-05-03T14:02:02.000Z","updated_at":"2024-07-27T20:24:43.000Z","dependencies_parsed_at":"2024-05-12T13:43:36.092Z","dependency_job_id":"3ede85ae-941f-476d-af58-fbbf8c0aeff1","html_url":"https://github.com/DaanV2/go-f1-library","commit_stats":null,"previous_names":["daanv2/go-f1-library"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-f1-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-f1-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-f1-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-f1-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaanV2","download_url":"https://codeload.github.com/DaanV2/go-f1-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239964514,"owners_count":19725952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["f1","f120xx","game","go","golang","library","mit"],"created_at":"2025-01-01T06:14:34.883Z","updated_at":"2026-04-04T05:30:16.940Z","avatar_url":"https://github.com/DaanV2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go F1 Library\n\nA library to handle game packets from the F1 20xx game.\n\n[![Pipeline](https://github.com/DaanV2/go-f1-library/actions/workflows/pipeline.yaml/badge.svg)](https://github.com/DaanV2/go-f1-library/actions/workflows/pipeline.yaml)\n\n# UPD example\n\n```go\nfunc main() {\n\tudpAddr, err := net.ResolveUDPAddr(\"udp\", \":21200\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconn, err := net.ListenUDP(\"udp\", udpAddr)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"Listening on\", udpAddr)\n\n\tresults := test_util.NewResults()\n\tparser := f1_2023.NewPacketParser()\n\n\t// Read from UDP listener in endless loop\n\tgo func() {\n\t\tvar buf [f1_2023.MAX_PACKET_SIZE]byte\n\t\tfor {\n\t\t\tn, _, err := conn.ReadFromUDP(buf[0:])\n\t\t\tif err != nil {\n\t\t\t\t// Conn closed\n\t\t\t\tif strings.Contains(err.Error(), \"use of closed network connection\"){\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tfmt.Println(err)\n\t\t\t} else {\n\t\t\t\tresults.AddPacket(parser, buf[:n])\n\t\t\t}\n\t\t}\n\t}()\n\n\t// Listen for ctrl-c\n\tc := make(chan os.Signal, 1)\n\tsignal.Notify(c, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)\n\t\u003c-c\n\n\tconn.Close()\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaanv2%2Fgo-f1-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaanv2%2Fgo-f1-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaanv2%2Fgo-f1-library/lists"}