util

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppPath string

AppPath define path where app stands

View Source
var ErrorExit = func() {
	os.Exit(1)
}

ErrorExit exit with error status code 1

View Source
var SuccessExit = func() {
	os.Exit(0)
}

SuccessExit exit with success status code 0

Functions

func ExtractFilesMatchingReg

func ExtractFilesMatchingReg(exp string) (*[]string, error)

ExtractFilesMatchingReg extract files matching given regexp

func GetAbsPath

func GetAbsPath(relPath string) string

GetAbsPath retrieve absolute path from relative file path

func GetFolderPath

func GetFolderPath(path string) string

GetFolderPath add trailing separator if it doesn't exist

func TrimAbsBasePath

func TrimAbsBasePath(absPath string) string

TrimAbsBasePath remove project folder

Types

This section is empty.

Jump to

Keyboard shortcuts

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