From 999990d16bb246b0e4e82e7d718e887a87949a03 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Dec 2020 19:43:46 +0100 Subject: Add package-level documentation --- browserenv.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'browserenv.go') diff --git a/browserenv.go b/browserenv.go index ff31ead..4bcc1ac 100644 --- a/browserenv.go +++ b/browserenv.go @@ -1,3 +1,13 @@ +// Package browserenv allows URLs and files to be opened in a local web +// browser. The system's default browser is used. If the BROWSER environment +// variable is set, the command it specifies is used instead. +// +// If the BROWSER variable contains the string "%s", that will be replaced with +// the URL. Otherwise, the URL is appended to the contents of BROWSER as its +// final argument. +// +// BROWSER can contain multiple commands delimited by colons. Each command is +// tried from left to right, stopping when a command exits with a 0 exit code. package browserenv import ( -- cgit v1.2.3