mirror of
https://github.com/spf13/viper
synced 2025-05-31 00:17:19 +00:00
Viper commit
This commit is contained in:
parent
d80342619e
commit
9f79234f5e
1 changed files with 20 additions and 20 deletions
4
viper.go
4
viper.go
|
@ -23,6 +23,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/csv"
|
"encoding/csv"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
@ -31,7 +32,6 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"errors"
|
|
||||||
|
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
|
@ -1536,7 +1536,7 @@ func (v *Viper) getRemoteConfig(provider RemoteProvider) (map[string]interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve the First Found remote configuration
|
// Retrieve the First Found remote configuration
|
||||||
func (v *Viper)GetRemoteConf() (io.Reader, error) {
|
func (v *Viper) GetRemoteConf() (io.Reader, error) {
|
||||||
for _, rp := range v.remoteProviders {
|
for _, rp := range v.remoteProviders {
|
||||||
reader, err := RemoteConfig.Get(rp)
|
reader, err := RemoteConfig.Get(rp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue