From 96b871410bb0664094fd4c7906dab20f980a0f34 Mon Sep 17 00:00:00 2001 From: Corbin Halliwill Date: Mon, 10 Oct 2016 18:28:20 -0700 Subject: [PATCH] Update README to reflect reality The yaml.Unmarshal() function looks only for lowercase fields in the yaml file. It would be nice to have this explicitly in the README to not mislead anyone. --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 98ac5cc..529687a 100644 --- a/README.md +++ b/README.md @@ -37,17 +37,17 @@ func main() { With configuration file *config.yml*: ```yaml -APPName: test +appname: test -DB: - Name: test - User: test - Password: test - Port: 1234 +db: + name: test + user: test + password: test + port: 1234 -Contacts: -- Name: i test - Email: test@test.com +contacts: +- name: i test + email: test@test.com ``` # Advanced Usage