util

package
v0.0.0-...-0886836 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsToMap

func ArgsToMap() map[string]string

func Atoi

func Atoi(num string, ifzero int) int

func ExtractDomain

func ExtractDomain(url string) string

func FixForDash

func FixForDash(s string) string

func GetArg

func GetArg(index int) string

func GetHeader

func GetHeader(field string, request *http.Request) string

func GetJsonInt64

func GetJsonInt64(m map[string]any, key string) int64

func GetJsonMap

func GetJsonMap(m map[string]any, key string) map[string]any

func GetJsonString

func GetJsonString(m map[string]any, key string) string

func PipeToJq

func PipeToJq(inputString string) string

func Plural

func Plural(s string) string

func PluralLogic

func PluralLogic(s string) string

func PseudoUuid

func PseudoUuid() string

func RemoveSensitiveKeys

func RemoveSensitiveKeys(m map[string]any)

func SpecialToPlural

func SpecialToPlural() map[string]string

func SpecialToSingle

func SpecialToSingle() map[string]string

func StripFields

func StripFields(row map[string]any) map[string]any

func ToAnyArray

func ToAnyArray(rows []map[string]any) []any

func ToCamelCase

func ToCamelCase(str string) string

func ToSnakeCase

func ToSnakeCase(str string) string

func Unplural

func Unplural(s string) string

func UnpluralLogic

func UnpluralLogic(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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