aboutsummaryrefslogtreecommitdiff
path: root/config/config.go
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-01-01 18:12:53 -0500
committerMitch Riedstra <mitch@riedstra.us>2017-01-01 18:12:53 -0500
commit8c2ed23f2e25265c6a74870eb4f6b5ad0e82f475 (patch)
tree3804c9209a2ad59c6096c1994ab541134798bc48 /config/config.go
parente2044c137569c08dd025d2e7fcb4575cf3cae3f2 (diff)
downloadsteam-export-8c2ed23f2e25265c6a74870eb4f6b5ad0e82f475.tar.gz
steam-export-8c2ed23f2e25265c6a74870eb4f6b5ad0e82f475.tar.xz
Add ability to find the ACF file related to the game
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index 541505e..5debdb6 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1,3 +1,4 @@
+// Used to define and load this application's specific configuration
package config
import (
@@ -10,12 +11,11 @@ var (
)
type Config struct {
- // Repos []string
- // map[string]map[string]interface{}
SteamRepositories []string `yaml:"SteamRepositories"`
Listen string
}
+// By default it reads 'config.yml' in the current directory
func LoadConfig() (*Config, error) {
c := &Config{}
err := c.ReadDefaultConfig()