updated docs in README.

This commit is contained in:
Alexey Maslov 2020-01-31 23:46:40 +08:00 committed by Márk Sági-Kazár
parent 9c81997cb1
commit b31a49291e

View file

@ -454,6 +454,16 @@ fmt.Println(viper.Get("port")) // 8080
fmt.Println(viper.Get("hostname")) // myhostname.com 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 ### Remote Key/Value Store Example - Encrypted
```go ```go