| commit | 5e6ae737dfb5b93d84417eff5f15143ef36ad23f | [log] [tgz] |
|---|---|---|
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sun May 19 22:31:34 2013 -0700 |
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sun May 19 22:31:34 2013 -0700 |
| tree | 48abcb0f5102069b6828a9c164ce8634b1da91be | |
| parent | c44d22219d74842a90a94fe833001829e5af3a00 [diff] |
Fix README example
diff --git a/README.md b/README.md index b565f30..31d4b84 100644 --- a/README.md +++ b/README.md
@@ -20,7 +20,10 @@ ## Example ```go -import "github.com/mitchellh/mapstructure" +import ( + "fmt" + "github.com/mitchellh/mapstructure" +) type Person struct { Name string @@ -42,7 +45,7 @@ } var result Person -err := Decode(input, &result) +err := mapstructure.Decode(input, &result) if err != nil { panic(err) }