Files
jira/vendor/github.com/pkg/browser/example_test.go
T

24 lines
661 B
Go

package browser
import "strings"
func ExampleOpenFile() {
OpenFile("index.html")
}
func ExampleOpenReader() {
// https://github.com/rust-lang/rust/issues/13871
const quote = `There was a night when winds from unknown spaces
whirled us irresistibly into limitless vacum beyond all thought and entity.
Perceptions of the most maddeningly untransmissible sort thronged upon us;
perceptions of infinity which at the time convulsed us with joy, yet which
are now partly lost to my memory and partly incapable of presentation to others.`
r := strings.NewReader(quote)
OpenReader(r)
}
func ExampleOpenURL() {
const url = "http://golang.org/"
OpenURL(url)
}