osopen

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package osopen opens files and directories in the host OS's default application or file manager. It is the reusable home for the "open" / "reveal in folder" primitives the desktop app's System settings needs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) error

Open launches path in the OS default application (a .log in the text editor, a directory in the file manager).

func Reveal

func Reveal(path string) error

Reveal shows path in the OS file manager, selecting it within its containing folder where the platform supports it (Finder, Explorer). On Linux, which has no universal reveal-and-select, it opens the containing directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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