path

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypePath

type TypePath struct {
	IsAbsolute bool
	Segments   []string
}

func ConstTypePath

func ConstTypePath(path string) TypePath

func Empty

func Empty() TypePath

func ParseTypePath

func ParseTypePath(path string) (TypePath, error)

func RelativeFromSegments

func RelativeFromSegments(segments ...string) TypePath

func Root

func Root() TypePath

func (TypePath) Add

func (t TypePath) Add(segments ...string) TypePath

func (TypePath) EndsWith

func (t TypePath) EndsWith(segment ...string) bool

func (TypePath) Equals

func (t TypePath) Equals(other TypePath) bool

func (TypePath) IndexOf

func (t TypePath) IndexOf(segment string) int

func (TypePath) IsEmpty

func (t TypePath) IsEmpty() bool

func (TypePath) Join

func (t TypePath) Join(o TypePath) TypePath

func (TypePath) SplitFirst

func (t TypePath) SplitFirst() (string, TypePath, error)

func (TypePath) SplitLast

func (t TypePath) SplitLast() (TypePath, string, error)

func (TypePath) StartsWith

func (t TypePath) StartsWith(segment ...string) bool

func (TypePath) String

func (t TypePath) String() string

Jump to

Keyboard shortcuts

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