Skip to content

Commit

Permalink
updated docs in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxmsl authored and sagikazarmark committed Feb 19, 2020
1 parent 9c81997 commit b31a492
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit b31a492

Please sign in to comment.