From 705fc2f44be5528b07897cd2f020f429024cddf0 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Wed, 11 Aug 2021 20:24:54 -0400 Subject: Mess around with go-swagger annotations. Remove some commented out code. --- cmd/web/app.go | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'cmd/web/app.go') diff --git a/cmd/web/app.go b/cmd/web/app.go index 578c44d..11df3ac 100644 --- a/cmd/web/app.go +++ b/cmd/web/app.go @@ -7,19 +7,8 @@ import ( "riedstra.dev/mitch/steam-export/steam" ) -// // statusInfo represents the internal status of game installation -// type statusInfo struct { -// sync.RWMutex -// Running bool -// Error error -// Url string -// Transferred int64 -// Size int64 -// Start *time.Time -// } - -// App binds together the steam library, templates, and channel for install -// requests as well as most the app specific http handlers. +// App binds together the steam library, templates filesystem, handlers, +// etc type App struct { Library *steam.Library @@ -35,8 +24,7 @@ type App struct { // download chan string } -// NewApp sets up the steam library for us as well as parses the embedded -// template +// NewApp sets up the steam library for us func NewApp(libPath string) (*App, error) { lib, err := steam.NewLibrary(libPath) if err != nil { @@ -44,10 +32,9 @@ func NewApp(libPath string) (*App, error) { } a := &App{ - Library: lib, - Version: Version, - ShareLink: getShareLink(), - // download: make(chan string), + Library: lib, + Version: Version, + ShareLink: getShareLink(), templateFS: TemplateFS, staticFS: StaticFS, } -- cgit v1.2.3