open

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MPL-2.0 Imports: 10 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JLabDesktop

func JLabDesktop(ctx context.Context, url string, log log.Logger) error

JLabDesktop opens the given url in the JLab desktop application, retrying every second until the context is done.

func Open

func Open(ctx context.Context, url string, log log.Logger) error

Open opens the given url in the default application, retrying every second until the context is done.

func Run added in v0.20.2

func Run(url string) error

Run opens the given URL in the default application. When running inside a Linux AppImage, it sanitizes the environment to avoid library conflicts before spawning xdg-open.

Types

This section is empty.

Jump to

Keyboard shortcuts

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