surah

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Madinah RevelationPlace = "madinah"
	Makkah  RevelationPlace = "makkah"
	English LanguageName    = "english"
)

Variables

This section is empty.

Functions

func FetchAndInsertSurahs

func FetchAndInsertSurahs()

Types

type Chapter

type Chapter struct {
	ID              int64           `json:"id"`
	RevelationPlace RevelationPlace `json:"revelation_place"`
	RevelationOrder int64           `json:"revelation_order"`
	BismillahPre    bool            `json:"bismillah_pre"`
	NameSimple      string          `json:"name_simple"`
	NameComplex     string          `json:"name_complex"`
	NameArabic      string          `json:"name_arabic"`
	VersesCount     int64           `json:"verses_count"`
	Pages           []int64         `json:"pages"`
	TranslatedName  TranslatedName  `json:"translated_name"`
}

type LanguageName

type LanguageName string

type RevelationPlace

type RevelationPlace string

type SurahsResponse

type SurahsResponse struct {
	Chapters []Chapter `json:"chapters"`
}

type TranslatedName

type TranslatedName struct {
	LanguageName LanguageName `json:"language_name"`
	Name         string       `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL