go-toast

Send toast notifications in Windows
Log | Files | Refs | README | LICENSE

commit 637ac233934ae98c9e6c5c93f233012131364118
parent 86a0d746142079efd945bb785677821586117647
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Mon,  7 Oct 2024 15:58:27 +1000

toast: update to v2

- added support for extra styling features
- changed requirements around SetAppData

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

Diffstat:
Mexamples/toast-cli/main.go | 2+-
Mgo.mod | 2+-
Minternal/winrt/ui/notifications/toastnotification.go | 2+-
Mtoast.go | 4++--
Mwintoast/bind_windows.go | 6+++---
5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/examples/toast-cli/main.go b/examples/toast-cli/main.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "git.sr.ht/~jackmordaunt/go-toast" + "git.sr.ht/~jackmordaunt/go-toast/v2" ) func main() { diff --git a/go.mod b/go.mod @@ -1,4 +1,4 @@ -module git.sr.ht/~jackmordaunt/go-toast +module git.sr.ht/~jackmordaunt/go-toast/v2 go 1.20 diff --git a/internal/winrt/ui/notifications/toastnotification.go b/internal/winrt/ui/notifications/toastnotification.go @@ -9,7 +9,7 @@ import ( "syscall" "unsafe" - "git.sr.ht/~jackmordaunt/go-toast/internal/winrt/data/xml/dom" + "git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/data/xml/dom" "github.com/go-ole/go-ole" ) diff --git a/toast.go b/toast.go @@ -14,8 +14,8 @@ package toast import ( "bytes" - "git.sr.ht/~jackmordaunt/go-toast/tmpl" - "git.sr.ht/~jackmordaunt/go-toast/wintoast" + "git.sr.ht/~jackmordaunt/go-toast/v2/tmpl" + "git.sr.ht/~jackmordaunt/go-toast/v2/wintoast" ) // Notification diff --git a/wintoast/bind_windows.go b/wintoast/bind_windows.go @@ -12,9 +12,9 @@ import ( "syscall" "unsafe" - "git.sr.ht/~jackmordaunt/go-toast/internal/winrt/data/xml/dom" - "git.sr.ht/~jackmordaunt/go-toast/internal/winrt/ui/notifications" - "git.sr.ht/~jackmordaunt/go-toast/tmpl" + "git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/data/xml/dom" + "git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/ui/notifications" + "git.sr.ht/~jackmordaunt/go-toast/v2/tmpl" "github.com/go-ole/go-ole" "golang.org/x/sys/windows" )