dbpath

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 3 Imported by: 21

Documentation

Index

Constants

View Source
const Separator = "/"

Variables

View Source
var NilPath = Path(nil)

Functions

func Append

func Append(pth string, parts ...string) string

func EscapePart

func EscapePart(part string) string

func Join

func Join(parts ...string) string

func Split

func Split(path string) ([]string, error)

func ToCanonical added in v0.3.0

func ToCanonical(pth string) (string, error)

func UnescapePart

func UnescapePart(part string) (string, error)

Types

type Matcher added in v0.6.0

type Matcher []matcherElement

func (Matcher) AppendAnyElementMatcher added in v0.6.0

func (m Matcher) AppendAnyElementMatcher() Matcher

func (Matcher) AppendAnySubpathMatcher added in v0.6.0

func (m Matcher) AppendAnySubpathMatcher() Matcher

func (Matcher) AppendExactMatcher added in v0.6.0

func (m Matcher) AppendExactMatcher(e string) Matcher

func (Matcher) Matches added in v0.6.0

func (m Matcher) Matches(p Path) bool

type Path added in v0.5.0

type Path []string

func MustParse added in v0.8.0

func MustParse(p string) Path

func Parse added in v0.5.0

func Parse(p string) (Path, error)

func ToPath added in v0.5.0

func ToPath(p ...string) Path

func (Path) Append added in v0.5.0

func (p Path) Append(elements ...string) Path

func (Path) Equal added in v0.6.0

func (p Path) Equal(o Path) bool

func (Path) IsPrefixOf added in v0.5.0

func (p Path) IsPrefixOf(o Path) bool

func (Path) String added in v0.5.0

func (p Path) String() string

func (Path) ToMatcher added in v0.6.0

func (p Path) ToMatcher() Matcher

Jump to

Keyboard shortcuts

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