Documentation
¶
Overview ¶
Package browser opens a URL in the user's default web browser.
The URL reaching Open comes from a config profile or from an API response, neither of which this CLI authored, so Validate is not a formality: a platform opener hands its argument to the OS handler registry, where a non-http scheme selects a program rather than a browser. macOS `open` will launch an application for a custom scheme, and on Windows `cmd /c start` treats its argument as a shell token. So every Open validates first, and callers that only print the URL validate too — the same value is wrong in both directions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open launches rawURL in the default browser. It validates first and returns the validated URL so a caller can report exactly what was opened.
Types ¶
This section is empty.