fix bugs related to vendoring

This commit is contained in:
steven carpenter 2025-06-30 17:33:59 -04:00
parent 1ab2dee3bf
commit e69fc18966

19
main.go
View file

@ -91,14 +91,17 @@ func main() {
return
}
if players == nil || len(*players) == 0 {
fmt.Println("No players online.")
} else {
fmt.Printf("Players online:\n")
for _, p := range *players {
fmt.Printf(" - Name: %s, Score: %d, Duration: %s\n", p.Name, p.Score, p.Duration)
}
}
if players == nil || len(*players) == 0 {
fmt.Println("No players online.")
} else {
maxIndex := byte(0)
for _, p := range *players {
if p.Index > maxIndex {
maxIndex = p.Index
}
}
fmt.Printf("Highest player index: %d\n", maxIndex)
}
}
func versionCompare(a, b string) int {