
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
github.com/dickermoshe/zmanim-core/zmanim_core
Go bindings for the Zmanim Core library, providing Jewish calendar calculations and zmanim (halachic times) functionality.
Install the Go package:
go get github.com/dickermoshe/zmanim-core/zmanim_core
Download the dynamic libraries from the GitHub releases page
Place the library files in your Go project directory:
zmanim_core.dll
to the same directory as your Go executablelibzmanim_core.so
to your system library path (e.g., /usr/local/lib/
) or the same directory as your executablelibzmanim_core.dylib
to your system library path or the same directory as your executableImport and use the Go bindings:
package main
import (
"fmt"
"time"
zmanim_core "github.com/dickermoshe/zmanim-core/zmanim_core"
)
func main() {
msSinceEpoch := time.Now().UnixMilli()
location := zmanim_core.NewGeolocation(31.768319, 35.213711, 0)
calendar := zmanim_core.NewAstronomicalCalendar(msSinceEpoch, *location)
sunrise := calendar.GetSunrise()
// Parse the sunrise time to a time.Time ms since epoch
sunriseTime := time.UnixMilli(*sunrise)
fmt.Println("Sunrise time:", sunriseTime)
}
go build -o your_app main.go
./your_app # On Windows: your_app.exe
If you prefer to statically link the Rust library into your Go binary:
Download the static libraries from the GitHub releases page
zmanim_core.lib
libzmanim_core.a
Place the static library in your project directory or system library path
Build with static linking flags:
# Windows
set CGO_ENABLED=1
set CGO_LDFLAGS=-L. -lzmanim_core
go build -ldflags "-linkmode external -extldflags -static" -o your_app.exe main.go
# Linux/macOS
export CGO_ENABLED=1
export CGO_LDFLAGS="-L. -lzmanim_core"
go build -ldflags "-linkmode external -extldflags -static" -o your_app main.go
"cannot find library" error:
LD_LIBRARY_PATH
CGO compilation errors:
export CGO_ENABLED=1
(Linux/macOS) or set CGO_ENABLED=1
(Windows)Static linking issues:
.lib
, .a
) not the dynamic oneThis project is licensed under the same license as the main Zmanim Core project.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.