path

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	Root string
	From string
	To   string
}

Path is path-like. Bonkers.

func New added in v0.6.0

func New(root, from, to string) *Path

New makes a new *Path. Crazy!

func (*Path) Fullpath

func (p *Path) Fullpath() string

Fullpath returns the full file/dir path

func (*Path) IsAbs added in v0.5.0

func (p *Path) IsAbs() bool

IsAbs tells if the path is absolute!

func (*Path) IsDir

func (p *Path) IsDir() bool

IsDir tells if the path is a directory!

func (*Path) IsExists added in v0.5.0

func (p *Path) IsExists() bool

IsExists tells if the path exists locally

type Set added in v0.7.7

type Set struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Set is a set of paths and their behaviors

func NewSet added in v0.7.7

func NewSet() *Set

NewSet creates a new *Set

func (*Set) Add added in v0.7.7

func (ps *Set) Add(p *Path)

Add adds a path to the set

func (*Set) All added in v0.7.7

func (ps *Set) All() []*Path

All returns each path in the pathset

Jump to

Keyboard shortcuts

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