fileview

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fileview shows files and folders in the system's own programs: a folder in the file manager, an image or PDF in its viewer, a file selected in its folder. Only what can't run is opened, so a page asking (the desktop app's, or the page the tray serves) can't make it run a program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileManager

func FileManager() string

FileManager is the name of the system's file manager, for "Show in …" ("" when it has none we know by name).

func OpenDocument

func OpenDocument(path string) error

OpenDocument shows an image, PDF, sound or video in the system's viewer (where the window's own preview falls short). Other files are refused: the page can't make it run one.

func OpenFolder

func OpenFolder(dir string) error

OpenFolder shows a folder (the logs', for one) in the file manager. Only an existing directory opens: the page can't make it run a file.

func RevealPath

func RevealPath(path string) error

RevealPath shows a file or folder selected in the system's file manager (Finder, Explorer, Dolphin, …); where that can't be asked, it opens the folder the path is in. Nothing is run: the path must exist, and it is only shown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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