tools

package
v0.0.0-...-ca1ed16 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckValidFormat

func CheckValidFormat(format string) error

CheckValidFormat checks if format is valid or not

func ClearOsEnv

func ClearOsEnv() error

ClearOsEnv removes all environment variables about AWS

func DecodeURLEncodedString

func DecodeURLEncodedString(encoded string) (string, error)

DecodeURLEncodedString decodes url-encoded string

func FileExists

func FileExists(filename string) bool

Check if file exists

func Formatting

func Formatting(i interface{}) interface{}

Formatting removes nil value

func IsExpired

func IsExpired(targetDate time.Time, timeAdded time.Duration) bool

IsExpired compares current time with (targetDate + timeAdded)

func IsStringInArray

func IsStringInArray(s string, arr []string) bool

Figure out if string is in array

func SetUpLogs

func SetUpLogs(stdErr io.Writer, level string) error

SetUpLogs set logrus log format

Types

This section is empty.

Jump to

Keyboard shortcuts

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