Skip to content

Commit

Permalink
Update readme, remove web.json
Browse files Browse the repository at this point in the history
  • Loading branch information
applehat committed Sep 29, 2023
1 parent f112cd0 commit 13dcd7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 105,846 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ fmt.Println("Genesis 1:1 - " + verse.Text)
// Genesis 1:1 - In the beginning God created the heaven and the earth.
```

You can also use this to generate GoBible format JSON files from other formats:

```go
b := NewGoBible()
// Load an OSIS XML file
b.LoadFormat("WEB.xml", "osis")

// Save the translation as GoBible JSON
goBibleJson := b.GetBibleJSON("WEB")

// Save the translation as GoBible JSON to a file
os.WriteFile("WEB.json", []byte(goBibleJson), 0644)
```

### Interacting by Reference

Once you have 1 or multiple translations loaded, you can interact with them by reference notation.
Expand Down
Loading

0 comments on commit 13dcd7e

Please sign in to comment.