Skip to content

Commit

Permalink
Merge pull request aymerick#6 from robvdl/fix-readme-example
Browse files Browse the repository at this point in the history
Fix: README example didn't compile because source order
  • Loading branch information
aymerick authored Dec 9, 2016
2 parents 52f66b8 + 1e954b3 commit 7714a19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ func main() {
{{/each}}
</div>`

type Post struct {
Author Person
Body string
Comments []Comment
}

type Person struct {
FirstName string
LastName string
Expand All @@ -231,6 +225,12 @@ func main() {
Body string
}

type Post struct {
Author Person
Body string
Comments []Comment
}

ctx := Post{
Person{"Jean", "Valjean"},
"Life is difficult",
Expand Down

0 comments on commit 7714a19

Please sign in to comment.