browser

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenURL

func OpenURL(targetURL string) error

OpenURL 尝试在系统默认浏览器中打开指定的目标 URL 全面支持 macOS、Windows、Linux 以及 WSL/WSL2 环境

func OpenURLAsync

func OpenURLAsync(targetURL string, delay time.Duration)

OpenURLAsync 异步延迟并在后台打开浏览器 仅限定在本地原生桌面/WSL环境运行;若在容器、远程或非本地环境则静默跳过

Types

This section is empty.

Jump to

Keyboard shortcuts

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