Versions in this module Expand all Collapse all v23 v23.4.1 Apr 24, 2023 Changes in this version + const ErrCanceled + const ErrExtraButton + const ErrUnsupported + const FormFieldCalendar + const FormFieldComboBox + const FormFieldEntry + const FormFieldList + const FormFieldPassword + func Calendar(text string, options ...Option) (time.Time, error) + func Entry(text string, options ...Option) (string, error) + func Error(text string, options ...Option) error + func Forms(text string, options ...Option) ([]string, error) + func Info(text string, options ...Option) error + func IsAvailable() bool + func List(text string, items []string, options ...Option) (string, error) + func ListItems(text string, items ...string) (string, error) + func ListMultiple(text string, items []string, options ...Option) ([]string, error) + func ListMultipleItems(text string, items ...string) ([]string, error) + func Notify(text string, options ...Option) error + func Password(options ...Option) (usr string, pwd string, err error) + func Question(text string, options ...Option) error + func SelectColor(options ...Option) (color.Color, error) + func SelectFile(options ...Option) (string, error) + func SelectFileMultiple(options ...Option) ([]string, error) + func SelectFileSave(options ...Option) (string, error) + func Warning(text string, options ...Option) error + type DialogIcon int + const ErrorIcon + const InfoIcon + const NoIcon + const PasswordIcon + const QuestionIcon + const WarningIcon + func (i DialogIcon) String() string + type FileFilter struct + CaseFold bool + Name string + Patterns []string + type FileFilters []FileFilter + type Option interface + func Attach(id any) Option + func CalendarField(name string) Option + func CancelLabel(cancel string) Option + func CheckList() Option + func ClassHint(name, class string) Option + func Color(c color.Color) Option + func ComboBoxField(name string, values ...string) Option + func ConfirmCreate() Option + func ConfirmOverwrite() Option + func Context(ctx context.Context) Option + func DefaultCancel() Option + func DefaultDate(year int, month time.Month, day int) Option + func DefaultItems(items ...string) Option + func Directory() Option + func DisallowEmpty() Option + func Display(display string) Option + func Ellipsize() Option + func EntryField(name string) Option + func EntryText(text string) Option + func ExtraButton(extra string) Option + func Filename(filename string) Option + func Height(height uint) Option + func HideText() Option + func Icon(icon any) Option + func ListField(name string, showHeader bool, cols []string, values ...string) Option + func MaxValue(value int) Option + func MidSearch() Option + func Modal() Option + func NoCancel() Option + func NoWrap() Option + func OKLabel(ok string) Option + func PasswordField(name string) Option + func Pulsate() Option + func RadioList() Option + func ShowHidden() Option + func ShowPalette() Option + func TimeRemaining() Option + func Title(title string) Option + func Username() Option + func Width(width uint) Option + func WindowIcon(icon any) Option + type ProgressDialog interface + Close func() error + Complete func() error + Done func() <-chan struct{} + MaxValue func() int + Text func(string) error + Value func(int) error + func Progress(options ...Option) (ProgressDialog, error)