mirror of https://github.com/spf13/viper.git
updated docs in README.
This commit is contained in:
parent
9c81997cb1
commit
b31a49291e
10
README.md
10
README.md
|
@ -454,6 +454,16 @@ fmt.Println(viper.Get("port")) // 8080
|
|||
fmt.Println(viper.Get("hostname")) // myhostname.com
|
||||
```
|
||||
|
||||
#### Firestore
|
||||
|
||||
```go
|
||||
viper.AddRemoteProvider("firestore", "google-cloud-project-id", "collection/document")
|
||||
viper.SetConfigType("json") // Config's format: "json", "toml", "yaml", "yml"
|
||||
err := viper.ReadRemoteConfig()
|
||||
```
|
||||
|
||||
Of course, you're allowed to use `SecureRemoteProvider` also
|
||||
|
||||
### Remote Key/Value Store Example - Encrypted
|
||||
|
||||
```go
|
||||
|
|
Loading…
Reference in New Issue