Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/airani/quran

Quran Go Module
https://github.com/airani/quran

go golang golang-module golang-package quran

Last synced: about 7 hours ago
JSON representation

Quran Go Module

Awesome Lists containing this project

README

        

# Quran Go Module

[![Build Status](https://travis-ci.com/airani/quran.svg?branch=master)](https://travis-ci.com/airani/quran)

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

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

### Get Surah
```go
s := q.Surah(1) // Surah with number 1
```

### Get Random Surah
```go
s.RandSurah()
```

### Get Ayah
```go
s.Ayah(1) // Ayah number 1 of surah
```

### Get Random Ayah Of Surah
```go
s.RandAyah()
```