Open shanghaobo opened 1 year ago
Example code
func main() {
start := time.Now()
fmt.Println("start")
msg := "测试通知内容"
notification := toast.Notification{
AppID: "test",
Title: "测试通知标题",
Message: msg,
}
err := notification.Push()
if err != nil {
panic(err)
}
end := time.Now()
fmt.Println("end")
fmt.Printf("use time: %v", end.Sub(start))
}
Before fix output
start
end
use time: 3.8882003s
After fix output
start
end
use time: 384.8986ms
… improve loading speed #34