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"` }
Click to show internal directories.
Click to hide internal directories.