util

package
v0.0.0-...-ce6b2e3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 12 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 GuidFilename

func GuidFilename(name, guid string) string

func IntComma

func IntComma(i int64) string

func MakeTemplate

func MakeTemplate(name string)

func Minify

func Minify()

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 ToAny

func ToAny(rows []string) []any

func ToAnyArray

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

func ToCamelCase

func ToCamelCase(str string) string

func ToMSA

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

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