Skip to content

Commit

Permalink
Update readme according to go doc
Browse files Browse the repository at this point in the history
  • Loading branch information
posener committed Nov 2, 2019
1 parent d2d1541 commit f9828d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -212,6 +219,13 @@ if err != nil {

// Copy the content to stdout.
io.Copy(os.Stdout, f)
```

Output:

```
# helloworld
```


Expand Down

0 comments on commit f9828d5

Please sign in to comment.