per game stats and box score

This commit is contained in:
Ravi Prasad
2025-07-08 01:23:34 -05:00
parent a16af088af
commit c7c04fee7e
7 changed files with 704 additions and 101 deletions
+10
View File
@@ -8,6 +8,16 @@ func mustAtoi(s string) int {
return i
}
// mustAtoiWithSign handles strings that might have a "+" or "-" sign.
func mustAtoiWithSign(s string) int {
if s == "" {
return 0
}
// The strconv.Atoi function handles the sign automatically.
i, _ := strconv.Atoi(s)
return i
}
// mustParseFloat parses s into a float64, or returns 0.0 on error.
func mustParseFloat(s string) float64 {
f, _ := strconv.ParseFloat(s, 64)