Skip to main content
Version: 1.1.0 (current)

Initialization

First thing to do is to import the package and then initialize the Quran struct:

import "github.com/Omar-Belghaouti/miracle"

var quran = miracle.Book()

This will initialize the Quran struct with the default language which is Arabic. You can set the language by using SetLanguage method:

quran.SetLanguage("en")

The language can be either en for English or ar for Arabic and it will be used to read the Suar verses.

Quran struct

type Quran struct {
language string
}