Help us shape the future of Go! Take the 2026 Go Developer Survey

browser

package
v1.107.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(url, launcher string) (*exec.Cmd, error)

Command produces an exec.Cmd respecting runtime.GOOS and $BROWSER environment variable

func ForOS

func ForOS(goos, url string) *exec.Cmd

ForOS produces an exec.Cmd to open the web browser for different OS

func FromLauncher

func FromLauncher(launcher, url string) (*exec.Cmd, error)

FromLauncher parses the launcher string based on shell splitting rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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