Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions browser.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package browser provides helpers to open files, readers, and urls in a browser window.
//
// The choice of which browser is started is entirely client dependant.
// The choice of which browser is started is entirely client dependent.
package browser

import (
Expand All @@ -18,7 +18,7 @@ var Stdout io.Writer = os.Stdout
// Stderr is the io.Writer to which executed commands write standard error.
var Stderr io.Writer = os.Stderr

// OpenFile opens new browser window for the file path.
// OpenFile opens a new browser window for the file path.
func OpenFile(path string) error {
path, err := filepath.Abs(path)
if err != nil {
Expand Down
14 changes: 14 additions & 0 deletions browser_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package browser

import (
"testing"
)

func TestStdoutStderr(t *testing.T) {
if Stdout == nil {
t.Error("Stdout should not be nil")
}
if Stderr == nil {
t.Error("Stderr should not be nil")
}
}