aboutsummaryrefslogtreecommitdiff
path: root/steam/steam.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-24 22:25:40 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-24 22:25:40 -0400
commit0fc3eda77004f41c5f0a804028da2d90b0373ea7 (patch)
treeedf6d74e6a2b7140350eab1e40d0fbf70e10f87c /steam/steam.go
parentf4fcd237b2d0eb950fc15a8af1fb0894b6ad6359 (diff)
downloadsteam-export-0fc3eda77004f41c5f0a804028da2d90b0373ea7.tar.gz
steam-export-0fc3eda77004f41c5f0a804028da2d90b0373ea7.tar.xz
Another development snapshot. Updated license. Added Swagger documentation--embedded! Note about 'swaggo'
Diffstat (limited to 'steam/steam.go')
-rw-r--r--steam/steam.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/steam/steam.go b/steam/steam.go
index ae69020..03fa51e 100644
--- a/steam/steam.go
+++ b/steam/steam.go
@@ -34,9 +34,9 @@ type Library struct {
// Game represents an actual game in the steam Library. The purpose is only
// to provide info on a game.
type Game struct {
- Name string
- LibraryPath string
- Size int64
+ Name string `json:"Name" example:"Doom"`
+ LibraryPath string `json:"LibraryPath" example:"C:\\Program Files (x86)\\Steam\\steamapps"`
+ Size int64 `json:"Size" example:"12345"`
}
var slugregexp = regexp.MustCompile(`[^-0-9A-Za-z_:.]`)