From 0d75ecea1c8c20a98fe8def0b7a3ad7f515029b8 Mon Sep 17 00:00:00 2001 From: oliveagle Date: Fri, 15 May 2015 19:36:05 +0800 Subject: [PATCH] update README.md [close #66] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd42a2f..16d017b 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ currently a single viper only supports a single config file. panic(fmt.Errorf("Fatal error config file: %s \n", err)) } -### Reading Config from bytes.Buffer +### Reading Config from io.Reader Viper predefined many configuration sources, such as files, environment variables, flags and remote K/V store. But you are not bound to them. You can also implement your own way to @@ -107,7 +107,7 @@ eyes : brown beard: true `) -viper.ReadBufConfig(bytes.NewBuffer(yamlExample)) +viper.ReadConfig(bytes.NewBuffer(yamlExample)) viper.Get("name") // this would be "steve" ````