browser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(url string) error

Open launches url in the default browser.

Types

type Opener

type Opener struct {
	// contains filtered or unexported fields
}

Opener launches URLs in the default browser for a specific GOOS.

func New

func New() *Opener

New returns an Opener bound to the current platform.

func (*Opener) Open

func (o *Opener) Open(url string) error

Open launches url in the default browser for the Opener's platform.

Jump to

Keyboard shortcuts

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