opener

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(arg string, port int) (string, error)

BuildURL converts a file path or URL argument into a proxy URL. For local files, relative paths are resolved to absolute paths. For remote URLs (http:// or https://), the scheme is converted to a path prefix.

func IsServerRunning

func IsServerRunning(port int) bool

IsServerRunning checks if a server is already listening on the given port.

func OpenBrowser

func OpenBrowser(rawURL string) error

OpenBrowser opens the given URL in the default browser.

func StartServer

func StartServer(port int, args []string) error

StartServer launches a new server process in the background and waits for it to become ready. The provided args should be the command-line flags to pass to the server (excluding the file argument).

Types

This section is empty.

Jump to

Keyboard shortcuts

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