valueUtils

package
v0.0.0-...-add256a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePrecision

func ChangePrecision(flt float64, precision int) float64

func GenerateByteItems

func GenerateByteItems(start byte, end byte, step int, rand bool, repeat int, repeatTag string) (ret []interface{})

func GenerateFloatItems

func GenerateFloatItems(start float64, end float64, step float64, rand bool, precision, repeat int, repeatTag string) (
	ret []interface{})

func GenerateIntItems

func GenerateIntItems(start int64, end int64, step int64, rand bool, repeat int, repeatTag string) (ret []interface{})

func GetPrecision

func GetPrecision(base float64, step interface{}) (precision int, newStep float64)

func InterfaceToStr

func InterfaceToStr(val interface{}) (ret string)

func ParseValue

func ParseValue(str string) (ret interface{}, typ consts.DataType)

func RandItems

func RandItems(items []interface{}) (ret []interface{})

func RandNum

func RandNum(length int) int

func RandNum64

func RandNum64(length int64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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