bible-io 1.0.2

A Rust library for working with Bible text data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use bible_io::{Bible, BibleBook};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let file_path = "tests/fixtures/en_kjv.json";

    let bible = Bible::new(file_path)?;

    match bible.get_verse(BibleBook::Genesis, 1, 1) {
        Ok(verse) => println!("{}", verse),
        Err(e) => eprintln!("Error: {}", e),
    }

    Ok(())
}