Zenity dialogs for Golang, Windows, macOS
Go to file
2020-01-24 11:12:02 +00:00
cmd/zenity Color dialog (linux). 2020-01-22 01:15:29 +00:00
internal/zenutil Improve documentation. 2020-01-24 11:12:02 +00:00
.gitignore WIP: zenity command (macos). 2020-01-07 00:57:50 +00:00
color_darwin.go Improve documentation. 2020-01-24 11:12:02 +00:00
color_test.go Color dialog (linux). 2020-01-22 01:15:29 +00:00
color_unix.go Improve documentation. 2020-01-24 11:12:02 +00:00
color_windows.go Improve documentation. 2020-01-24 11:12:02 +00:00
color.go Improve documentation. 2020-01-24 11:12:02 +00:00
file_darwin.go Improve documentation. 2020-01-24 11:12:02 +00:00
file_test.go File selection tweaks, options, API (windows). 2020-01-12 03:37:01 +00:00
file_unix.go Improve documentation. 2020-01-24 11:12:02 +00:00
file_windows.go Improve documentation. 2020-01-24 11:12:02 +00:00
file.go Improve documentation. 2020-01-24 11:12:02 +00:00
go.mod Color dialog (macos). 2020-01-19 04:28:06 +00:00
go.sum Refactoring. 2020-01-19 12:53:20 +00:00
LICENSE Initial commit 2019-12-10 10:51:21 +00:00
msg_darwin.go Improve documentation. 2020-01-24 11:12:02 +00:00
msg_test.go Convert wsl/cygwin paths (windows). 2020-01-17 12:28:44 +00:00
msg_unix.go Improve documentation. 2020-01-24 11:12:02 +00:00
msg_windows.go Improve documentation. 2020-01-24 11:12:02 +00:00
msg.go Improve documentation. 2020-01-24 11:12:02 +00:00
README.md Improve documentation. 2020-01-24 11:12:02 +00:00
util_windows_test.go Convert wsl/cygwin paths (windows). 2020-01-17 12:28:44 +00:00
util_windows.go Convert wsl/cygwin paths (windows). 2020-01-17 12:28:44 +00:00
zenity.go Improve documentation. 2020-01-24 11:12:02 +00:00

Zenity dialogs for Golang, Windows and macOS

GoDoc

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?

Requirements:

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