hconverter

package
v1.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegPatNumberDecimal = "^[+-]*\\d+$"
)

Variables

This section is empty.

Functions

func Float2Int added in v1.1.10

func Float2Int(v float64, k reflect.Kind) interface{}

func Hex2Dec

func Hex2Dec(val string) int

func IntToHexString

func IntToHexString(v int64, bits int) string

func Map2Bson

func Map2Bson(data map[string]interface{}) bson.M

func String2Bool

func String2Bool(s string) (bool, bool)

func String2Decimal

func String2Decimal(s string) (int64, bool)

func String2Float

func String2Float(s string) (float64, bool)

func String2Hex

func String2Hex(s string) (int64, bool)

func String2NumberArray

func String2NumberArray(s string) ([]float64, bool)

func String2NumberDecimal

func String2NumberDecimal(s string) (int64, bool)

func String2NumberHex

func String2NumberHex(s string) (int64, bool)

func String2NumberRange

func String2NumberRange(s string) (float64, float64, bool)

func String2String

func String2String(s string) (string, bool)

func String2StringArray

func String2StringArray(s string) ([]string, bool)

func String2StringRange

func String2StringRange(s string) (string, string, bool)

func String2Value

func String2Value(s string) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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