path_helpers

package module
v0.0.0-...-80f7c97 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 13 Imported by: 1

README

go-path-helpes

Path Helpers functions.

Get it

go get github.com/moisespsena/go-path-helpers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GOPATHC string
	GOPATH  string
	GOPATHS []string
)

Functions

func CopyTree

func CopyTree(dest string, sources []interface{}) (err error)

func GetCalledDir

func GetCalledDir(abs ...bool) string

func GetCalledDirOrError

func GetCalledDirOrError(abs ...bool) string

func GetCalledFileName

func GetCalledFileName(abs ...bool) string

func GetCalledFileNameSkip

func GetCalledFileNameSkip(skip int, abs ...bool) (pth string)

func HasSources

func HasSources(skip ...int) bool

func IsExistingDir

func IsExistingDir(pth string) bool

func IsExistingDirE

func IsExistingDirE(pth string) (ok bool, err error)

func IsExistingRegularFile

func IsExistingRegularFile(pth string) bool
func IsSymlink(mode os.FileMode) bool

func MkdirAll

func MkdirAll(pth string) error

func MkdirAllIfNotExists

func MkdirAllIfNotExists(pth string) error

func PkgPathOf

func PkgPathOf(value interface{}) string

func ResolveFileMode

func ResolveFileMode(pth string) (mode os.FileMode, err error)

func ResolveFilePerms

func ResolveFilePerms(pth string) (perms permbits.PermissionBits, err error)

func ResolveGoPath

func ResolveGoPath(pth string) (gopath string)

func ResolveGoSrcPath

func ResolveGoSrcPath(p ...string) string

func ResolveMode

func ResolveMode(pth string) (mode os.FileMode, err error)

func ResolvePerms

func ResolvePerms(pth string) (perms permbits.PermissionBits, err error)

func TrimGoPathC

func TrimGoPathC(pth string, sub ...string) string

Types

type Path

type Path struct {
	Real  string
	Alias string
	Data  []byte
}

Jump to

Keyboard shortcuts

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