From 64c55a201ee5bc828cf4613e272613d5a1d58672 Mon Sep 17 00:00:00 2001 From: George <5142275+1gm@users.noreply.github.com> Date: Sat, 18 Apr 2020 21:10:36 -0700 Subject: [PATCH 1/2] Fix README usage section syntax errors Fixed syntax errors in init and main functions that prevented the code from compiling. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c30eda9..6aa2c6b 100644 --- a/README.md +++ b/README.md @@ -98,15 +98,15 @@ How broccoli is used in the user code: ```go //go:generate broccoli -src=testdata,others -o assets func init() { - br.Walk("testdata", func(path string, info os.FileInfo, err error) error { - // walk... - return nil - } + br.Walk("testdata", func(path string, info os.FileInfo, err error) error { + // walk... + return nil + }) } func main() { - server := http.FileServer(br) - http.ListenAndServe(":8080", server))) + server := http.FileServer(br) + http.ListenAndServe(":8080", server) } ``` From 4ab0a553a5fe17d26d28b57773f624a271ebdf8a Mon Sep 17 00:00:00 2001 From: George <5142275+1gm@users.noreply.github.com> Date: Sat, 18 Apr 2020 21:54:14 -0700 Subject: [PATCH 2/2] Revert whitespace to TAB change in README usage --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6aa2c6b..7fcc8b8 100644 --- a/README.md +++ b/README.md @@ -98,15 +98,15 @@ How broccoli is used in the user code: ```go //go:generate broccoli -src=testdata,others -o assets func init() { - br.Walk("testdata", func(path string, info os.FileInfo, err error) error { - // walk... - return nil - }) + br.Walk("testdata", func(path string, info os.FileInfo, err error) error { + // walk... + return nil + }) } func main() { - server := http.FileServer(br) - http.ListenAndServe(":8080", server) + server := http.FileServer(br) + http.ListenAndServe(":8080", server) } ```