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.
35 lines
850 B
Go
35 lines
850 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"`
|
|
Name string `json:"name"`
|
|
ASCIIName string `json:"ascii_name"`
|
|
AlternateNames string `json:"alternate_names"`
|
|
CountryCode string `json:"country_code"`
|
|
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"`
|
|
}
|