init global config

This commit is contained in:
Bradley Cicenas
2017-01-03 17:37:09 +00:00
parent e1e989c220
commit 062c4298f2
6 changed files with 38 additions and 34 deletions

13
config.go Normal file
View File

@@ -0,0 +1,13 @@
package main
type Config struct {
sortField string
}
var DefaultConfig = NewDefaultConfig()
func NewDefaultConfig() Config {
return Config{
sortField: "id",
}
}