browser

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 3 Imported by: 0 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

Overview

Package browser picks the command that opens an address in a browser of this session, shared by the CLI and the terminal UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(goos string, getenv func(string) string, u string) []string

Command is the command that opens u in a browser of this session, or nil when there is none and the address should be printed instead: over SSH, where a browser would open on the remote machine, or without a desktop.

func Open

func Open(argv []string) error

Open runs argv, a Command, without waiting for the browser: the opener hands the address over and exits, and a goroutine reaps it so a long-running caller keeps no exited child.

Types

This section is empty.

Jump to

Keyboard shortcuts

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