You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
730 B
Go
33 lines
730 B
Go
package prayer
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrInvalidLocation = errors.New("invalid location")
|
|
|
|
type Coordinates struct {
|
|
Latitude float64
|
|
Longitude float64
|
|
}
|
|
|
|
type Location struct {
|
|
ID int `json:"id"`
|
|
NameTR string `json:"name_tr"`
|
|
NameEN string `json:"name_en"`
|
|
Latitude float64 `json:"latitude"`
|
|
Longitude float64 `json:"longitude"`
|
|
}
|
|
|
|
type Times struct {
|
|
Date string `json:"date"`
|
|
DateIslamic string `json:"date_islamic,omitempty"`
|
|
Fajr string `json:"fajr"`
|
|
Sunrise string `json:"sunrise"`
|
|
Dhuhr string `json:"dhuhr"`
|
|
Asr string `json:"asr"`
|
|
Sunset string `json:"sunset,omitempty"`
|
|
Maghrib string `json:"maghrib"`
|
|
Isha string `json:"isha"`
|
|
}
|