utils

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsHeaders

func CorsHeaders() map[string]string

CorsHeaders returns a map to allow Cors

func DeepCopy

func DeepCopy(toValue interface{}, fromValue interface{}) (err error)

func GetEnv

func GetEnv(name string, def string) (env string)

GetEnv is a helper function for getting environment variables with a default

func MapStringInterfaceToMapStringString

func MapStringInterfaceToMapStringString(inputMap map[string]interface{}) map[string]string

MapStringInterfaceToMapStringString converts a generic value typed map to a map with string values

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

MergeMaps If there are similar properties in the maps, the last one will be used as the value

func UnwrapBool

func UnwrapBool(b *bool) bool

func UnzipData

func UnzipData(data []byte) (map[string][]byte, error)

func ZipData

func ZipData(fileName string, data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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