Skip to content

Commit d8b905b

Browse files
author
Matthew Borders
authored
Added search example to README.md
1 parent 2399a95 commit d8b905b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ chap, err := b.OldTestament.GetChapter(1, 1)
2929
vers, err := b.NewTestament.GetVerse(4, 8, 32)
3030
fmt.Print(vers.Text) // English
3131
fmt.Print(vers.TextLatin) // Latin
32+
33+
// Search for verses
34+
v := b.Search("truth make you free", 10) // max of 10 results
35+
fmt.Print(v[0].Book.Title)
36+
fmt.Print(v[0].Chapter.ChapterNumber)
37+
fmt.Print(v[0].Verse.Text)
38+
fmt.Print(v[0].String()) // John 8:32
3239
```

0 commit comments

Comments
 (0)