Zenity dialogs for Golang, Windows, macOS Fork of https://github.com/ncruces/zenity
Find a file
2021-04-07 14:40:40 +01:00
cmd/zenity Remove manifest. 2021-04-05 18:44:59 +01:00
internal/zenutil List (macOS), see #3. 2021-04-07 14:40:40 +01:00
.gitignore WIP: zenity command (macos). 2020-01-07 00:57:50 +00:00
color.go Refactor. 2021-03-04 12:42:30 +00:00
color_darwin.go Refactor. 2021-03-04 12:42:30 +00:00
color_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
color_unix.go Trim newlines. 2021-03-06 02:29:00 +00:00
color_windows.go Refactor, docs. 2021-03-26 13:26:56 +00:00
entry.go Password (unix, macOS). 2021-03-06 02:07:00 +00:00
entry_darwin.go Refactor (macOS). 2021-04-07 00:08:31 +01:00
entry_test.go Entry tests. 2021-04-05 23:55:42 +01:00
entry_unix.go Trim newlines. 2021-03-06 02:29:00 +00:00
entry_windows.go Entry tests. 2021-04-05 23:55:42 +01:00
file.go Reshuffle. 2021-03-05 16:25:50 +00:00
file_darwin.go Trim newlines. 2021-03-06 02:29:00 +00:00
file_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
file_unix.go Trim newlines. 2021-03-06 02:29:00 +00:00
file_windows.go DPI awareness improvements (windows). 2021-03-26 12:40:24 +00:00
go.mod Entry tests. 2021-04-05 23:55:42 +01:00
go.sum Entry tests. 2021-04-05 23:55:42 +01:00
LICENSE Initial commit 2019-12-10 10:51:21 +00:00
list.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
list_darwin.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
list_test.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
list_unix.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
list_windows.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
msg.go Fixes. 2021-03-08 01:12:32 +00:00
msg_darwin.go Refactor (macOS). 2021-04-07 00:08:31 +01:00
msg_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
msg_unix.go Trim newlines. 2021-03-06 02:29:00 +00:00
msg_windows.go Fix (win32). 2021-04-05 19:02:42 +01:00
notify.go Refactor. 2021-03-04 12:42:30 +00:00
notify_darwin.go Refactor. 2021-03-04 12:42:30 +00:00
notify_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
notify_unix.go Reshuffle. 2021-03-05 16:25:50 +00:00
notify_windows.go Refactor, docs. 2021-03-10 14:49:09 +00:00
README.md Refactor (macOS). 2021-04-07 00:08:31 +01:00
util_darwin.go Refactor (macOS). 2021-04-07 00:08:31 +01:00
util_windows.go Fix (win32). 2021-04-05 19:02:42 +01:00
util_windows_test.go Convert wsl/cygwin paths (windows). 2020-01-17 12:28:44 +00:00
zenity.go List (macOS), see #3. 2021-04-07 14:40:40 +01:00
zenity_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00

Zenity dialogs for Golang, Windows and macOS

PkgGoDev Go Report

This repo includes both a cross-platform Go package providing Zenity-like dialogs (simple dialogs that interact graphically with the user), as well as a “port” of the zenity command to both Windows and macOS based on that library.

This is a work in progress.

Lots of things are missing. For now, these are the only implemented dialogs:

Behavior on Windows, macOS and other Unixes might differ slightly. Some of that is intended (reflecting platform differences), other bits are unfortunate limitations, others still are open to be fixed.

Why?

There are a bunch of other dialog packages for Go.
Why reinvent this particular wheel?

Benefits:

  • no cgo (see benefits, mostly cross-compilation)
  • no main loop (or any other threading or initialization requirements)
  • cancelation through context
  • on Windows:
    • no additional dependencies
      • Explorer shell not required
      • works in Server Core
    • Unicode support
    • High DPI support (no manifest required)
    • WSL/Cygwin/MSYS2 support
  • on macOS:
    • only dependency is osascript
  • on other Unixes:
    • wraps either one of zenity, qarma, matedialog