1
1
mirror of https://github.com/walles/moar.git synced 2024-11-13 11:14:30 +03:00

Tune embedding example

This commit is contained in:
Johan Walles 2020-12-30 15:19:19 +01:00
parent 2b18347022
commit 0ea058db7c

View File

@ -91,10 +91,12 @@ func main() {
buf := bytes.Buffer{}
fmt.Fprintln(&buf, "March")
fmt.Fprintln(&buf, "April")
name := "Months"
e := m.Page(m.NewReaderFromStream(&name, &buf))
if e != nil {
panic(e)
err := m.Page(m.NewReaderFromStream(&name, &buf))
if err != nil {
// Handle paging problems
panic(err)
}
}
```