browser

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotWebUrlOrLocalFilePath

func IsNotWebUrlOrLocalFilePath(s string) bool

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

func IsWebUrlOrLocalFilePath

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

func OpenFromClipboard() error

OpenFromClipboard read url from clipboard and open it.

func OpenFromStdin

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