Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
prayer
✓ github.com/hablullah/go-prayer
Calculate prayer times for a given location and date.
package main
import (
"fmt"
"time"
"github.com/hablullah/go-prayer"
)
func main() {
p := prayer.New(prayer.Config{
Latitude: 51.5074,
Longitude: -0.1278,
Timezone: 0,
Method: prayer.MWL,
})
times := p.Calculate(time.Now())
fmt.Println(times.Fajr)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.