使用到的库:https://github.com/go-toast/toast
toast
库实现原理很简单,用 Go 的 exec.Command
调用临时生成的包含通知代码的 Powershell 脚本
示例代码:
package main
import (
"github.com/go-toast/toast"
"log"
)
func main() {
notification := toast.Notification{
AppID:
使用到的库:https://github.com/go-toast/toast
toast
库实现原理很简单,用 Go 的 exec.Command
调用临时生成的包含通知代码的 Powershell 脚本
示例代码:
package main
import (
"github.com/go-toast/toast"
"log"
)
func main() {
notification := toast.Notification{
AppID: