sirius/internal/model/config.go

13 lines
169 B
Go
Raw Normal View History

2023-04-17 08:48:09 +03:00
package model
2023-04-17 05:00:34 +03:00
import (
"github.com/spf13/viper"
)
func Init() error {
viper.AddConfigPath("./config")
viper.SetConfigName("config")
return viper.ReadInConfig()
}