| 1234567891011121314151617181920212223 |
- package cnf
- /**
- DEPRECATED:
- Read config file from dist. use viper which support many types of configure files.
- */
- //import (
- // "github.com/spf13/viper"
- //)
- //
- //func Load(file string) error {
- // v := viper.New();
- // v.AddConfigPath(".")
- // v.SetConfigType("json")
- // v.SetConfigFile(file)
- // err := v.ReadInConfig()
- // if err != nil {
- // return err
- // }
- // return nil
- //}
|