minor fixes

This commit is contained in:
Steve 2020-02-12 20:36:05 -05:00
parent 1c91fe5081
commit f56c50d63a
2 changed files with 2 additions and 5 deletions

5
go.mod
View File

@ -1,17 +1,14 @@
module gemineye module secretshop
go 1.13 go 1.13
require ( require (
github.com/chewxy/sexp v0.0.0-20181223234510-461851156c0f // indirect
github.com/gorilla/mux v1.7.4 // indirect
github.com/pelletier/go-toml v1.6.0 // indirect github.com/pelletier/go-toml v1.6.0 // indirect
github.com/spf13/afero v1.2.2 // indirect github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.1 // indirect github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.6.2 github.com/spf13/viper v1.6.2
github.com/stryan/go-gopher v0.0.0-20191008152201-adba90945dcb
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect
golang.org/x/text v0.3.2 // indirect golang.org/x/text v0.3.2 // indirect
gopkg.in/ini.v1 v1.52.0 // indirect gopkg.in/ini.v1 v1.52.0 // indirect

View File

@ -9,7 +9,7 @@ import (
func main() { func main() {
viper.SetConfigName("config") viper.SetConfigName("config")
viper.AddConfigPath("/etc/gemineye/") viper.AddConfigPath("/etc/secretshop/")
viper.AddConfigPath(".") viper.AddConfigPath(".")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { // Handle errors reading the config file if err != nil { // Handle errors reading the config file