utils

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathExpandable = ExpanderMap{
		"$all":  &allExpander{},
		"$test": &testExpander{},
	}
	PackageExpandable = ExpanderMap{
		"$gostd": &gostdExpander{},
	}
)

Functions

func ExpandMap

func ExpandMap(m map[string]string, exp ExpanderMap) error

func ExpandSlice

func ExpandSlice(sl []string, exp ExpanderMap) ([]string, error)

Types

type Expander

type Expander interface {
	Expand() ([]string, error)
}

type ExpanderMap

type ExpanderMap map[string]Expander

type MultiError

type MultiError []error

func (MultiError) Error

func (me MultiError) Error() string

Jump to

Keyboard shortcuts

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