Documentation
¶
Index ¶
- func AnyArrayToFloat64Array(input any) ([]float64, bool)
- func AnyArrayToStringArray(input any) ([]string, bool)
- func BToGiB(b uint64) uint64
- func BToKiB(b uint64) uint64
- func BToMiB(b uint64) uint64
- func BToTiB(b uint64) uint64
- func Canonicalise(value any) (any, bool)
- func GiBToB(b uint64) uint64
- func KiBToB(b uint64) uint64
- func MiBToB(b uint64) uint64
- func NumericArrayToFloat64[T Number](in []T) []float64
- func TiBToB(b uint64) uint64
- func ToBool(value any) (bool, bool)
- func ToComplex128(value any) (complex128, bool)
- func ToFloat64(val any) (float64, bool)
- func ToInt64(value any) (int64, bool)
- func ToString(value any) (string, bool)
- func ToUint64(value any) (uint64, bool)
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyArrayToFloat64Array ¶
func AnyArrayToStringArray ¶
func Canonicalise ¶
Canonicalise a value to a standard type for that value.
e.g. `int` becomes `int64`.
func NumericArrayToFloat64 ¶
func ToComplex128 ¶
func ToComplex128(value any) (complex128, bool)
Convert a value to a 128-bit complex number.
Types ¶
type Number ¶
type Number interface {
constraints.Integer | constraints.Float
}
Click to show internal directories.
Click to hide internal directories.