Documentation ¶
Index ¶
- Variables
- func DefaultsPathsList() ([]string, error)
- func DirExists(path string) bool
- func DirHome() (string, error)
- func ExpandHome(path string) (string, error)
- func FileExists(path string) bool
- func FilenameToApplication(filename string) ([]string, bool, error)
- func MimeAppsPathsList() ([]string, error)
- func MimeTypeToApplication(mimetype string) (string, bool, error)
- func MimetypeToDesktopEntry(mimetype string) (string, error)
- func MimetypeToDesktopFile(mimetype string) (string, error)
- func OpenLocal(filename string) error
- func OpenRemote(filename string, r io.Reader) (string, error)
- func Scan(s string) []string
- type ErrDesktopFileNotFound
- type ErrInvalidDesktopFile
- type ErrNoDesktopEntry
- type ErrNoOpener
- type ErrUnknownType
- type XDGDirs
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFound = errors.New("found")
Functions ¶
func DefaultsPathsList ¶
func ExpandHome ¶
Expand expands the path to include the home directory if the path is prefixed with `~`. If it isn't prefixed with `~`, the path is returned as-is.
func FileExists ¶
func MimeAppsPathsList ¶
func MimetypeToDesktopEntry ¶
func MimetypeToDesktopFile ¶
Types ¶
type ErrDesktopFileNotFound ¶
type ErrDesktopFileNotFound struct {
EntryName string
}
func (ErrDesktopFileNotFound) Error ¶
func (e ErrDesktopFileNotFound) Error() string
type ErrInvalidDesktopFile ¶
func (ErrInvalidDesktopFile) Error ¶
func (e ErrInvalidDesktopFile) Error() string
type ErrNoDesktopEntry ¶
type ErrNoDesktopEntry struct {
Mimetype string
}
func (ErrNoDesktopEntry) Error ¶
func (e ErrNoDesktopEntry) Error() string
type ErrNoOpener ¶
func (ErrNoOpener) Error ¶
func (e ErrNoOpener) Error() string
type ErrUnknownType ¶
type ErrUnknownType struct {
Filename string
}
func (ErrUnknownType) Error ¶
func (e ErrUnknownType) Error() string
Click to show internal directories.
Click to hide internal directories.