InputBox is a simple cross-platform library for displaying desktop dialog boxes in your go application
package main
import "github.com/martinlindhe/inputbox"
func main() {
got, ok := inputbox.InputBox("Dialog title", "Type a number", "abc")
if ok {
fmt.Println("you entered:", got)
} else {
fmt.Println("No value entered")
}
}
Uses a powershell script
Uses a osascript
Uses zenity (gtk)
If you like this, check out https://github.com/martinlindhe/notify for cross-platform desktop notifications.
Under MIT