common

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(value interface{}) (string, error)

func GenerateRandomStringWithPrefix

func GenerateRandomStringWithPrefix(limit int, upper, lower, withSpecialChars bool, prefix string) string

func GetUUID

func GetUUID() string

func IsImageURLIncludesTag

func IsImageURLIncludesTag(imageURL string) bool

func IsNotNilAndNotEmpty

func IsNotNilAndNotEmpty(target interface{}) bool

func IsStringInSlice

func IsStringInSlice(target string, list []string) bool

func MapInterfaceToString

func MapInterfaceToString(input map[string]interface{}) (map[string]string, error)

func MapIsNulOrEmpty

func MapIsNulOrEmpty(target map[string]string) bool

func NormaliseNoSpaces

func NormaliseNoSpaces(target string) string

func NormaliseStringLower

func NormaliseStringLower(target string) string

func NormaliseStringUpper

func NormaliseStringUpper(target string) string

func StructToMap

func StructToMap(input interface{}, toUpper bool) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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