utils

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtoiNoError added in v1.4.0

func AtoiNoError(strToConv string, resp *resource.ReadResponse) int32

func CheckInt64toInt32Security added in v1.27.0

func CheckInt64toInt32Security(n int64) (int32, error)

CheckInt64toInt32Security check parse direct int64 to int32.

func ConvertFloat64ToInterface added in v1.8.0

func ConvertFloat64ToInterface(sliceInt []types.Float64) (interface{}, error)

func ConvertInterfaceToFloat64List added in v1.8.0

func ConvertInterfaceToFloat64List(listInt interface{}) []types.Float64

func ConvertInterfaceToString added in v1.2.0

func ConvertInterfaceToString(jsonArgs interface{}) (string, error)

func ConvertStringToInterface added in v1.2.0

func ConvertStringToInterface(jsonArgs string) (interface{}, error)

func ExceedsValidRange added in v1.27.0

func ExceedsValidRange(resp any, vl any)

func SliceIntTypeToList added in v1.10.0

func SliceIntTypeToList(slice []types.Int64) types.List

func SliceStringTypeToList

func SliceStringTypeToList(slice []types.String) types.List

func SliceStringTypeToSet added in v0.13.0

func SliceStringTypeToSet(slice []types.String) types.Set

func SliceStringTypeToSetOrNull added in v1.15.0

func SliceStringTypeToSetOrNull(slice []types.String) types.Set

Types

This section is empty.

Jump to

Keyboard shortcuts

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