go-notify-darwin

Rich notifications on macOS for Go
Log | Files | Refs | README | LICENSE

commit bc821b108ca70dcb4f21707acd059ec56edbc45d
parent 8e3117eeb218bb92bce5a8a43694887a631078c4
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Tue, 17 Dec 2024 11:33:30 +0800

noti: require cgo in all cases

This prevents a build error that is caused by the presence of C files
while cgo is disabled, which breaks all unsupported platforms.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Mnoti_unsupported.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/noti_unsupported.go b/noti_unsupported.go @@ -1,7 +1,9 @@ -//go:build !darwin || !cgo +//go:build !darwin package noti +import "C" + func Init(categories ...Category) {} func Notify(n Notification) {}