Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gen2brain/dlgs
Go cross-platform library for displaying dialogs and input boxes
https://github.com/gen2brain/dlgs
dialogs qarma zenity
Last synced: 3 months ago
JSON representation
Go cross-platform library for displaying dialogs and input boxes
- Host: GitHub
- URL: https://github.com/gen2brain/dlgs
- Owner: gen2brain
- License: bsd-2-clause
- Archived: true
- Created: 2018-01-25T15:36:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T10:06:47.000Z (over 2 years ago)
- Last Synced: 2024-02-15T10:34:01.575Z (9 months ago)
- Topics: dialogs, qarma, zenity
- Language: Go
- Size: 61.5 KB
- Stars: 376
- Watchers: 10
- Forks: 44
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- cybersecurity-golang-security - dlgs - Go cross-platform library for displaying dialogs and input boxes (General Post Exploitation)
- awesome-go-security - dlgs - Go cross-platform library for displaying dialogs and input boxes (General Post Exploitation)
README
## dlgs
[![TravisCI Build Status](https://travis-ci.org/gen2brain/dlgs.svg?branch=master)](https://travis-ci.org/gen2brain/dlgs)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/53ekhdkai4r12un3?svg=true)](https://ci.appveyor.com/project/gen2brain/dlgs)
[![GoDoc](https://godoc.org/github.com/gen2brain/dlgs?status.svg)](https://godoc.org/github.com/gen2brain/dlgs)
[![Go Report Card](https://goreportcard.com/badge/github.com/gen2brain/dlgs?branch=master)](https://goreportcard.com/report/github.com/gen2brain/dlgs)`dlgs` is a cross-platform library for displaying dialogs and input boxes.
NOTE: This repository is archived and will not be maintained anymore.
See https://github.com/ncruces/zenity for cgo-free dialogs, also check https://github.com/gen2brain/iup-go for full-blown UI.### Installation
go get -u github.com/gen2brain/dlgs
### Documentation
Documentation on [GoDoc](https://godoc.org/github.com/gen2brain/dlgs).
### Examples
```go
item, _, err := dlgs.List("List", "Select item from list:", []string{"Bug", "New Feature", "Improvement"})
if err != nil {
panic(err)
}
``````go
passwd, _, err := dlgs.Password("Password", "Enter your API key:")
if err != nil {
panic(err)
}
``````go
yes, err := dlgs.Question("Question", "Are you sure you want to format this media?", true)
if err != nil {
panic(err)
}
```## More
For cross-platform notifications and alerts see [beeep](https://github.com/gen2brain/beeep).