common

package
v2.0.1-0...-a2232c2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

View Source
const MaxRecursivePath = 256

Variables

This section is empty.

Functions

func ContainsValue

func ContainsValue(arr []string, value string) bool

func EnsureAccess

func EnsureAccess(source string, prefix string) bool

func GetBooleanOrDefault

func GetBooleanOrDefault(data map[string]interface{}, key string, def bool) bool

func GetMapOrNull

func GetMapOrNull(data map[string]interface{}, key string) map[string]interface{}

func GetObjectArrayOrNull

func GetObjectArrayOrNull(data map[string]interface{}, key string) []interface{}

func GetStringArrayOrNull

func GetStringArrayOrNull(data map[string]interface{}, key string) []string

func GetStringOrDefault

func GetStringOrDefault(data map[string]interface{}, key string, def string) string

func JoinPath

func JoinPath(paths ...string) string
func RemoveInvalidSymlinks(files []os.FileInfo, sourceFolder, prefix string) []os.FileInfo

func ReplaceTokens

func ReplaceTokens(msg string, mapping map[string]interface{}) string

func ReplaceTokensInArr

func ReplaceTokensInArr(msg []string, mapping map[string]interface{}) []string

func ReplaceTokensInMap

func ReplaceTokensInMap(msg map[string]string, mapping map[string]interface{}) map[string]string

func ToStringArray

func ToStringArray(element interface{}) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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