browser

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotWebUrlOrLocalFilePath added in v0.3.1

func IsNotWebUrlOrLocalFilePath(s string) bool

IsNotWebUrlOrLocalFilePath check s is not web url or local file path?

func IsWebUrlOrLocalFilePath added in v0.3.1

func IsWebUrlOrLocalFilePath(s string) bool

IsWebUrlOrLocalFilePath check s is web url or local file path?

func Open

func Open(url string) error

Open url in browser

1. print url 2. append to history 3. open in browser

func OpenFromClipboard added in v0.2.2

func OpenFromClipboard() error

OpenFromClipboard read url from clipboard and open it.

func OpenFromStdin added in v0.2.4

func OpenFromStdin() error

OpenFromStdin read url from stdin

ignore more than 4096

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL