aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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()