Documentation ¶
Index ¶
- Constants
- Variables
- func BaseDir(s string) string
- func Basename(s string) string
- func ChangeWorkDir(workDir string) error
- func CreateFile(path, filename string) error
- func DirName(s string) string
- func EnsureWorkDir(path string) string
- func Filename(s string) string
- func GetFieldValue(f interface{}, name string) reflect.Value
- func GetMatches(source string) [][]string
- func GetReferenceValue(object interface{}, name string) reflect.Value
- func GetRelativePath(level int) string
- func GetWorkDir() string
- func IsPathNotExist(path string) bool
- func LowerFirst(str string) string
- func ParseReferences(st interface{}, varName []string) string
- func ParseVariables(src string, re *regexp.Regexp) [][]string
- func Replace(to interface{}, root interface{}) error
- func ReplaceMap(m map[string]interface{}, root interface{}) error
- func ReplaceStringVariables(source string, t interface{}) string
- func StringInSlice(a string, list []string) bool
- func UpperFirst(str string) string
- func Visit(files *[]string) filepath.WalkFunc
- func WriterFile(path, filename string, in []byte) (int, error)
Constants ¶
View Source
const EmptyString = ""
Variables ¶
View Source
var NilPointerError = errors.New("nil pointer error")
View Source
var Validate *validator.Validate
Functions ¶
func ChangeWorkDir ¶
func CreateFile ¶
func EnsureWorkDir ¶ added in v0.2.0
func GetFieldValue ¶
GetFieldValue get filed value in reflected format
func GetMatches ¶ added in v0.2.0
func GetReferenceValue ¶ added in v0.2.0
func GetRelativePath ¶
func GetWorkDir ¶
func GetWorkDir() string
func IsPathNotExist ¶
func LowerFirst ¶
LowerFirst lower case first character of specific string
func ParseReferences ¶
ParseReferences parse the variable references
func ParseVariables ¶
ParseVariables parse reference and env variables
func Replace ¶
func Replace(to interface{}, root interface{}) error
Replace given env and reference variables inside specific struct
func ReplaceMap ¶ added in v0.2.0
ReplaceMap replace references and env variables
func ReplaceStringVariables ¶
ReplaceStringVariables replace reference and env variables
func StringInSlice ¶
StringInSlice check if specific string is in slice
func UpperFirst ¶
UpperFirst upper case first character of specific string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.