From 7ec15956e489889e54af289f5b48f6d1dedded69 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 23 Jun 2015 19:40:44 +0200 Subject: [PATCH] config: show original input on String() --- config/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 4f21f14e3..c3494c765 100644 --- a/config/config.go +++ b/config/config.go @@ -24,13 +24,12 @@ var ( // Load parses the YAML input s into a Config. func Load(s string) (*Config, error) { - cfg := &Config{ - original: s, - } + cfg := &Config{} err := yaml.Unmarshal([]byte(s), cfg) if err != nil { return nil, err } + cfg.original = s return cfg, nil }