Skip to content

Commit

Permalink
Added search example to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Borders authored Nov 8, 2018
1 parent 2399a95 commit d8b905b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ chap, err := b.OldTestament.GetChapter(1, 1)
vers, err := b.NewTestament.GetVerse(4, 8, 32)
fmt.Print(vers.Text) // English
fmt.Print(vers.TextLatin) // Latin

// Search for verses
v := b.Search("truth make you free", 10) // max of 10 results
fmt.Print(v[0].Book.Title)
fmt.Print(v[0].Chapter.ChapterNumber)
fmt.Print(v[0].Verse.Text)
fmt.Print(v[0].String()) // John 8:32
```

0 comments on commit d8b905b

Please sign in to comment.