Documentation
¶
Index ¶
- Variables
- func ChooseSaveFilePath(defaultName string) (string, error)
- func DefaultEnabled() bool
- func NativeFileDialogSupported() bool
- func OpenExternalURL(rawURL string) error
- func PickFiles() ([]string, error)
- func RunWebviewWindow(address, appVersion string) error
- func SaveFile(defaultName string, contents []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExternalBrowserLaunched = errors.New("desktop: external browser launched")
View Source
var ErrNativeDialogCanceled = errors.New("desktop: native file dialog canceled")
Functions ¶
func ChooseSaveFilePath ¶
ChooseSaveFilePath is unsupported outside desktop macOS CGO builds.
func DefaultEnabled ¶
func DefaultEnabled() bool
DefaultEnabled keeps server builds behavior unchanged, requiring an explicit -desktop flag only for binaries compiled with desktop support.
func NativeFileDialogSupported ¶
func NativeFileDialogSupported() bool
func OpenExternalURL ¶
OpenExternalURL is unavailable in server-only builds.
func RunWebviewWindow ¶
RunWebviewWindow returns a clear error in non-desktop builds so release binaries can keep CGO disabled while exposing an explicit runtime message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.