From b31a49291e7b00e5ba5db5d08c232755a458d1e1 Mon Sep 17 00:00:00 2001 From: Alexey Maslov Date: Fri, 31 Jan 2020 23:46:40 +0800 Subject: [PATCH] updated docs in README. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8489098..45e72f2 100644 --- a/README.md +++ b/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