os

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInteractor

type DefaultInteractor struct{}

DefaultInteractor is the default OS interactor that wraps go standard os package functionality to satisfy different interfaces

func (*DefaultInteractor) OpenURL

func (i *DefaultInteractor) OpenURL(url string) error

OpenURL opens the passed in url in the default OS browser

type Interactor

type Interactor interface {
	OpenURL(url string) error
}

Interactor abstracts opening a url on the users OS

Jump to

Keyboard shortcuts

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