aboutsummaryrefslogtreecommitdiff
path: root/steam
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2021-03-19 00:55:38 -0400
committerMitch Riedstra <mitch@riedstra.us>2021-03-19 00:55:38 -0400
commit219e47ae2a10ae6aca42e58abd084a69641ec613 (patch)
treeea949ff8a1d60e93f1031a56c692c93965ee69c2 /steam
parentcd2a6a963c3841fcd83e5e2910dfa4d9241c97f9 (diff)
downloadsteam-export-219e47ae2a10ae6aca42e58abd084a69641ec613.tar.gz
steam-export-219e47ae2a10ae6aca42e58abd084a69641ec613.tar.xz
Diffstat (limited to 'steam')
-rw-r--r--steam/steam.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/steam/steam.go b/steam/steam.go
index 24e4c54..d371121 100644
--- a/steam/steam.go
+++ b/steam/steam.go
@@ -23,6 +23,10 @@ type Game struct {
Size int64
}
+func (g Game) Slug() string {
+ return strings.ReplaceAll(g.Name, " ", "-")
+}
+
func ProcessMultipleLibraries(r []string) ([]*Library, error) {
var libs []*Library
for _, i := range r {