diff options
author | Teddy Wing | 2020-12-20 19:43:46 +0100 |
---|---|---|
committer | Teddy Wing | 2020-12-20 19:44:00 +0100 |
commit | 999990d16bb246b0e4e82e7d718e887a87949a03 (patch) | |
tree | 14c61a814c67f9fc0044197395170ce71710eda7 /browserenv.go | |
parent | 626ecf31a4302c4cc497a732e656d79d5411decc (diff) | |
download | browserenv-999990d16bb246b0e4e82e7d718e887a87949a03.tar.bz2 |
Add package-level documentation
Diffstat (limited to 'browserenv.go')
-rw-r--r-- | browserenv.go | 10 |
1 files changed, 10 insertions, 0 deletions
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 ( |