goscan/cmd/root_dev.go

18 lines
175 B
Go
Raw Permalink Normal View History

2024-09-13 21:56:18 +01:00
//go:build dev
package cmd
import (
"os"
"github.com/spf13/viper"
)
func init() {
path, err := os.Getwd()
if err != nil {
panic(err)
}
viper.AddConfigPath(path)
}