filedialogs

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootItems

func GetRootItems() (r []string)

func ShowOpenFile

func ShowOpenFile(parent uiinterfaces.Widget, selected func(filePath string))

Types

type FileInfo

type FileInfo struct {
	Path           string
	Name           string
	Dir            bool
	NameWithoutExt string
	Ext            string
	Size           int64
	Date           time.Time
	Attr           string
}

func GetDir

func GetDir(path string) ([]FileInfo, error)

func (*FileInfo) SizeAsString

func (c *FileInfo) SizeAsString() string

type OpenFileDialog

type OpenFileDialog struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewOpenFileDialog

func NewOpenFileDialog(parent uiinterfaces.Widget, defaultDirectory string) *OpenFileDialog

func (*OpenFileDialog) SetRoot

func (c *OpenFileDialog) SetRoot(path string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL