deckarep / gosx-notifier

gosx-notifier is a Go framework for sending desktop notifications to OSX 10.8 or higher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alert does not display if the first character of the message is a quote.

opened this issue · comments

This fails:

note := gosxnotifier.NewNotification("\"Welcome\" was updated.")
....
err := note.Push();
....

You can use strconv.QuoteToASCII link.

message := strconv.QuoteToASCII("\"Welcome\" was updated.")
note := gosxnotifier.NewNotification(message)
....
err := note.Push();
....