13 lines
169 B
Go
13 lines
169 B
Go
package model
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func Init() error {
|
|
viper.AddConfigPath("./config")
|
|
viper.SetConfigName("config")
|
|
|
|
return viper.ReadInConfig()
|
|
}
|