helpers

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

func Contains

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

func Empty

func Empty(val interface{}) bool

func FirstElement

func FirstElement(args []string) string

func LowerCamel

func LowerCamel(s string) string

func MicrosecondsStr

func MicrosecondsStr(elapsed time.Duration) string

func Plural

func Plural(word string) string

func RandomNumber

func RandomNumber(length int) string

func RandomNumberRange

func RandomNumberRange(min float64, max float64, precision int) float64

func RandomString

func RandomString(length int) string

func RandomWeightedIndex

func RandomWeightedIndex(weights []float32) int

func Singular

func Singular(word string) string

func Snake

func Snake(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