futil

package
v0.0.0-...-487b7a9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coalesce

func Coalesce(values ...interface{}) interface{}

Coalesce is

func CoalesceString

func CoalesceString(s ...string) string

func CoallesceString deprecated

func CoallesceString(s ...string) string

CoallesceString is a helper function to coalesce string

Deprecated: Use CoalesceString instead. CoallesceString will be removed in v1.0.0.

func Contains

func Contains(s []string, str string) bool

Contains is

func GenerateRandomInt

func GenerateRandomInt(min, max int) int

GenerateRandomInt is a helper function to generate random int by min and max

func GenerateRandomString

func GenerateRandomString(i int) string

GenerateRandomString is a helper function to generate random string by i length

func Hash

func Hash(s string) uint32

func IsNumber

func IsNumber(s string) bool

IsNumber is

func JsonEscape

func JsonEscape(i string) string

func StrEscape

func StrEscape(str string) string

func ToJSONString

func ToJSONString(data interface{}) string

func ToUpper

func ToUpper(s string) string

ToUpper is a helper function to convert string to uppercase

Types

This section is empty.

Jump to

Keyboard shortcuts

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