helpers

package
v0.0.0-...-e6eb724 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the bool value

func CleanPath

func CleanPath(p string) string

func CopyDir

func CopyDir(src string, dest string) (err error)

func CopyFile

func CopyFile(src string, dest string) (err error)

func Duration

func Duration(v time.Duration) *time.Duration

Duration returns a pointer to the time.Duration

func EnvFallBack

func EnvFallBack(envs []string, defaultValue string) string

EnvFallBack ...

func FileExists

func FileExists(path string) bool

func GetFullURL

func GetFullURL(base string, path string) string

func Int

func Int(v int) *int

Int returns a pointer to the int value

func IntSlice

func IntSlice(v []int) *[]int

IntSlice returns a pointer to the IntSlice value

func Map

func Map(v map[string]interface{}) *map[string]interface{}

Map returns a pointer to the map value

func RemoveFile

func RemoveFile(path string) error

func RemoveFilesWithPattern

func RemoveFilesWithPattern(targetDir, pattern string) error

RemoveFilesWithPattern ...

func String

func String(v string) *string

String returns a pointer to the string value

func Tprintf

func Tprintf(tmpl string, param map[string]interface{}) string

func Unzip

func Unzip(src, dest string) error

Unzip src to dest

Types

This section is empty.

Jump to

Keyboard shortcuts

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