Files

17 lines
562 B
Go
Raw Permalink Normal View History

package files
import "context"
// DirectoryPicker opens a platform directory chooser. The implementation must
// block only in its own goroutine; UI callers receive the result asynchronously.
type DirectoryPicker interface {
ChooseDirectory(context.Context) (string, error)
}
2026-07-27 22:46:31 +08:00
// ExecutablePicker opens a platform file chooser for an existing browser
// executable. The implementation must block only in its own goroutine; UI
// callers receive the result asynchronously.
type ExecutablePicker interface {
ChooseExecutable(context.Context) (string, error)
}