From 7e4e3b06bdd46e23ce5dfcbdee3815b0f4e042fc Mon Sep 17 00:00:00 2001 From: Philipp <32090713+ouun@users.noreply.github.com> Date: Mon, 9 Nov 2020 15:24:16 +0100 Subject: [PATCH] Fix Hello World syntax issue Fixes "mapping values are not allowed in this context at line 14 column 19" issue. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0729caa..b91c65fd 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ type Person struct { } func main() { - p := &Person{Name: "World"} + p := &Person{Name:"World"} json.NewDecoder(os.Stdin).Decode(p) fmt.Printf("Hello %v!", p.Name) }