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
}