path

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2014 License: MIT Imports: 5 Imported by: 0

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 PathSet

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

PathSet is a set of paths and their behaviors

func NewPathSet

func NewPathSet() *PathSet

NewPathSet creates a new *PathSet

func (*PathSet) Add

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

Add adds a path to the set

func (*PathSet) All

func (ps *PathSet) 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