Versions in this module Expand all Collapse all v2 v2.2.2 Dec 20, 2022 v2.2.1 Dec 19, 2022 Changes in this version + const FosAllowMultiselect — windows/amd64 + var ErrorCancelled = errors.New("cancelled by user") + type Dialog interface + GetResult func() (string, error) + Release func() error + SetDefaultFolder func(defaultFolder string) error + SetFileName func(fileName string) error + SetFolder func(folder string) error + SetParentWindowHandle func(hwnd uintptr) + SetRole func(role string) error + SetTitle func(title string) error + Show func() error + ShowAndGetResult func() (string, error) + type DialogConfig struct + DefaultExtension string + DefaultFolder string + FileFilters []FileFilter + FileName string + Folder string + ParentWindowHandle uintptr + Role string + SelectedFileFilterIndex uint + Title string + type FileDialog interface + SetDefaultExtension func(defaultExtension string) error + SetFileFilters func(fileFilter []FileFilter) error + SetSelectedFileFilterIndex func(index uint) error + type FileFilter struct + DisplayName string + Pattern string + type OpenFileDialog interface + func NewOpenFileDialog(config DialogConfig) (OpenFileDialog, error) + type OpenMultipleFilesDialog interface + GetResults func() ([]string, error) + ShowAndGetResults func() ([]string, error) + func NewOpenMultipleFilesDialog(config DialogConfig) (OpenMultipleFilesDialog, error) + type SaveFileDialog interface + func NewSaveFileDialog(config DialogConfig) (SaveFileDialog, error) + type SelectFolderDialog interface + func NewSelectFolderDialog(config DialogConfig) (SelectFolderDialog, error)