Registry / utility / nathan-osman-go-sunrise

nathan-osman-go-sunrise

JSON →
library1.1.0gogounverified

A Go library for calculating sunrise and sunset times based on geographic coordinates and date.

go get github.com/nathan-osman/go-sunrise
INSTALL
IMPORT
SIG · NATHAN-OSMAN-GO-SU
N
nathan-osman-go-sunrise
utilitygov1.1.0
harness data pending
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.

sunrise
github.com/nathan-osman/go-sunrise

Calculate sunrise and sunset times

package main import ( "fmt" "github.com/nathan-osman/go-sunrise" ) func main() { rise, set := sunrise.SunriseSunset(40.7128, -74.0060, 2023, 1, 1) fmt.Println(rise, set) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nathan-osman-go-sunrise — go get nathan-osman-go-sunrise · libregistry