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