opener

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opener

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

Opener handles opening URLs in the browser

func New

func New(logger *slog.Logger) *Opener

New creates a new Opener

func (*Opener) OpenURL

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

OpenURL opens a URL in the default browser

Jump to

Keyboard shortcuts

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