renamed some structs to make the private

This commit is contained in:
2025-11-20 15:44:28 +01:00
parent 34f55eccf0
commit 0e47fb6983
5 changed files with 15 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ import (
const UNKOWN_GAME_GAME = "Unkown"
type SteamAPIResponse struct {
type steamAPIResponse struct {
Success bool `json:"success"`
Data struct {
Name string `json:"name"`
@@ -46,7 +46,7 @@ func fetchGameName(appID string) (string, error) {
return "", fmt.Errorf("reading response for %s: %s", appID, err)
}
var result map[string]SteamAPIResponse
var result map[string]steamAPIResponse
if err := json.Unmarshal(body, &result); err != nil {
return "", fmt.Errorf("parsing response for %s: %s", appID, err)
}