// ReadConsule reads config from consule
ReadConsule reads config from consule
// ReadConsule reads config from consule
func (a *App) ReadConsule() error {
	viper.AddRemoteProvider("consul", a.consulURL, a.consulPath)
	viper.SetConfigType("yml")
	err := viper.ReadRemoteConfig()
	if err != nil {
		return fmt.Errorf("%s named \"%s\"", err.Error(), a.consulPath)
	}
	return nil
}
func ( a * App ) ReadConsule ( ) error { viper . AddRemoteProvider ( " " , a . consulURL , a . consulPath ) viper . SetConfigType ( " " ) err := viper . ReadRemoteConfig ( ) if err != nil { return fmt . Errorf ( " \" \" " , err . Error ( ) , a . consulPath ) } return nil }
ReadConsule reads config from consule
ReadConsule reads config from consule