Skip to content

Commit

Permalink
Fix: README example didn't compile because source order
Browse files Browse the repository at this point in the history
  • Loading branch information
robvdl committed Jul 26, 2016
1 parent a2232af commit 1e954b3
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 1e954b3

Please sign in to comment.