Skip to content

package files_window

import "kaiju/editor/ui/files_window"

Functions

Any

func Any(title string) chan string

Creates a window allowing the person to select any file or folder

Files

func Files(title string, extensions []string) chan string

Creates a window allowing the person to select a file with the given extensions

Folder

func Folder(title string) chan string

Creates a window allowing the person to select a folder

Types

FileWindow

struct

type FileWindow struct {
    Dir        []fs.DirEntry
    Path       string
    Extensions []string

    Folders bool

    // Has unexported fields.
}

FileWindow.CanSelectFolder

func (s *FileWindow) CanSelectFolder() bool