panel/cmd/root_dev.go

17 lines
174 B
Go
Raw Normal View History

2024-11-06 21:18:14 +01:00
//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)
}