path

package
v0.0.0-...-e3349b5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotExists = iota + 1
	NoDir
	NoFile
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	General string
}

func NewPath

func NewPath(path string) *Path

func (*Path) ChangeDir

func (p *Path) ChangeDir(relative string) error

func (Path) ContentType

func (p Path) ContentType() (string, error)

func (*Path) ExpectDir

func (p *Path) ExpectDir(dir bool) error

func (Path) GetRelativePath

func (p Path) GetRelativePath(relative string, exists bool) (*Path, error)

func (*Path) ListDir

func (p *Path) ListDir(showDotted bool) (list []os.FileInfo, error error)

func (*Path) MkDir

func (p *Path) MkDir(mayExists bool) error

func (Path) Times

func (p Path) Times(time time.Time) error

type PathError

type PathError struct {
	Id int
}

func (PathError) Code

func (PathError) Code() int

func (PathError) Error

func (e PathError) Error() string

type VPath

type VPath struct {
	*Path
	Visible string
}

func NewVPath

func NewVPath(path string) *VPath

func (*VPath) ChangeDir

func (p *VPath) ChangeDir(relative string) error

func (*VPath) CurrentDir

func (p *VPath) CurrentDir() string

func (*VPath) Formatted

func (p *VPath) Formatted() string

Jump to

Keyboard shortcuts

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