Help us shape the future of Go! Take the 2026 Go Developer Survey

filepicker

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Wad = Picker{
		Filters: []string{"*.wad"},
		Msg:     "Wad files",
		Path:    latestPath,
	}
	Pk3 = Picker{
		Filters: []string{"*.pk3", "*.wad"},
		Msg:     "pk3 or wad files",
		Path:    latestPath,
	}
	Image = Picker{
		Filters: []string{"*.png", "*.gif", "*.ico", "*.jpg", "*.webp"},
		Msg:     "Images",
		Path:    latestPath,
	}
	Executable = func() Picker {
		p := Picker{
			Msg:  "Executable files",
			Path: latestPath,
		}
		if v.IsWindows {
			p.Filters = []string{"*.exe"}
		} else {
			p.Filters = []string{"*"}
		}
		return p
	}()
)

Functions

This section is empty.

Types

type Picker

type Picker struct {
	Filters []string
	Msg     string
	Path    string
}

func (Picker) MultiStart added in v1.7.0

func (p Picker) MultiStart() []string

func (Picker) Start added in v1.6.2

func (p Picker) Start() string

Jump to

Keyboard shortcuts

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