launch

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: GPL-3.0 Imports: 3 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 launch hands things to the operating system to open: a file in the file manager or a URL in the browser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenURL

func OpenURL(url string) error

OpenURL opens url in the default browser. The opener is started and left running; only a failure to start it is reported.

func ShowInFileManager

func ShowInFileManager(path string) error

ShowInFileManager shows path in the platform file manager: Finder with the file selected on macOS, Explorer with the file selected on Windows, and the containing folder through xdg-open elsewhere, where selecting a file is not portable across file managers. The file manager is started and left running; only a failure to start it is reported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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