readersmap

package
v0.0.0-...-34d0e24 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
	ErrDupFile  = errors.New("unit name is duplicated")
)

Functions

This section is empty.

Types

type Map

type Map map[string]io.Reader

func Wrap

func Wrap(rr []Unit) (Map, error)

func (Map) Open

func (mm Map) Open(name string) (io.Reader, error)

type Unit

type Unit struct {
	Name string
	io.Reader
}

Jump to

Keyboard shortcuts

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