Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildURL ¶
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 ¶
IsServerRunning checks if a server is already listening on the given port.
func OpenBrowser ¶
OpenBrowser opens the given URL in the default browser.
func StartServer ¶
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.
Click to show internal directories.
Click to hide internal directories.