From f9828d53944f17ae267d7e9db81957a65e65089f Mon Sep 17 00:00:00 2001 From: goreadme Date: Sat, 2 Nov 2019 21:46:13 +0000 Subject: [PATCH] Update readme according to go doc --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 7c06311..5c87146 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,13 @@ if err != nil { // Execute the template and write to stdout. tmpls.ExecuteTemplate(os.Stdout, "tmpl1.gotmpl", "Foo") +``` + + Output: + +``` +Hello, Foo + ``` ##### Open @@ -212,6 +219,13 @@ if err != nil { // Copy the content to stdout. io.Copy(os.Stdout, f) +``` + + Output: + +``` +# helloworld + ```