mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
updated docs in README.
This commit is contained in:
parent
9c81997cb1
commit
b31a49291e
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue