Skip to content

airani/quran

Repository files navigation

Quran Go Module

Build Status

Quran module for Go lang to working with Quran ayahs and surahs

New Quran

q, err := quran.New()
if err != nil {
    // ...
}

Get Surah

s := q.Surah(1) // Surah with number 1

Get Random Surah

s.RandSurah()

Get Ayah

s.Ayah(1) // Ayah number 1 of surah

Get Random Ayah Of Surah

s.RandAyah()