Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/airani/quran
- Owner: airani
- Created: 2020-05-10T20:31:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T19:41:14.000Z (over 4 years ago)
- Last Synced: 2024-06-21T14:15:23.911Z (5 months ago)
- Topics: go, golang, golang-module, golang-package, quran
- Language: Go
- Homepage:
- Size: 1.4 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
```