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 + ```