// +build darwin package main import ( "fmt" "os/exec" ) func notify(s string) error { cmd := fmt.Sprintf("display notification %q with title %q", s, "Pomodoro") return exec.Command("osascript", "-e", cmd).Run() }