16 lines
174 B
Go
16 lines
174 B
Go
//go:build dev
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
"os"
|
|
)
|
|
|
|
func init() {
|
|
path, err := os.Getwd()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
viper.AddConfigPath(path)
|
|
}
|