openers

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOpeners

func ListOpeners() []string

func NewReadCloser

func NewReadCloser(r io.Reader, closure func() error) io.ReadCloser

func Open

func Open(s string, lock bool) (io.ReadCloser, error)

Types

type Opener

type Opener interface {
	Open(s string, lock bool) (io.ReadCloser, error)
	Evaluate(s string) float32 //score the ability to open
	Name() string
	Description() string
}

type OpenerCollection

type OpenerCollection struct {
	Name string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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