xplat

package
v0.0.0-...-769d336 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBrowsePath

func DefaultBrowsePath() string

func OpenBrowser

func OpenBrowser(url string) error

OpenBrowser asks the host OS to open the provided URL in the default browser.

Types

type BrowseOptions

type BrowseOptions struct {
	ShowFiles       bool
	ShowHiddenPaths bool
}

type DirectoryBrowseResult

type DirectoryBrowseResult struct {
	Path      string
	Separator string
	Segments  []PathSegment
	Entries   []DirectoryEntry
}

func BrowseDirectories

func BrowseDirectories(path string, opts BrowseOptions) (DirectoryBrowseResult, error)

type DirectoryEntry

type DirectoryEntry struct {
	Name  string `json:"name"`
	Path  string `json:"path"`
	IsDir bool   `json:"is_dir"`
}

type PathSegment

type PathSegment struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

func SplitPath

func SplitPath(path string) []PathSegment

Jump to

Keyboard shortcuts

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