sirius/internal/model/config.go
2023-04-17 15:48:09 +10:00

13 lines
169 B
Go

package model
import (
"github.com/spf13/viper"
)
func Init() error {
viper.AddConfigPath("./config")
viper.SetConfigName("config")
return viper.ReadInConfig()
}