Documentation ¶
Index ¶
- Constants
- func ToBigFloat(i any) *big.Float
- func ToBigFloatE(a any) (*big.Float, error)
- func ToBigInt(i any) *big.Int
- func ToBigIntE(a any) (*big.Int, error)
- func ToBigRat(i any) *big.Rat
- func ToBigRatE(a any) (*big.Rat, error)
- func ToBool(i any) bool
- func ToBoolE(a any) (bool, error)
- func ToBytes(a any) []byte
- func ToBytesE(a any) ([]byte, error)
- func ToComplex128(i any) complex128
- func ToComplex128E(a any) (complex128, error)
- func ToComplex64(i any) complex64
- func ToComplex64E(a any) (complex64, error)
- func ToDuration(a any) time.Duration
- func ToDurationE(a any) (time.Duration, error)
- func ToError(a any) error
- func ToErrorE(a any) (error, error)
- func ToFloat32(i any) float32
- func ToFloat32E(a any) (float32, error)
- func ToFloat64(i any) float64
- func ToFloat64E(a any) (float64, error)
- func ToInt(i any) int
- func ToInt16(i any) int16
- func ToInt16E(a any) (int16, error)
- func ToInt32(i any) int32
- func ToInt32E(a any) (int32, error)
- func ToInt64(i any) int64
- func ToInt64E(a any) (int64, error)
- func ToInt8(i any) int8
- func ToInt8E(a any) (int8, error)
- func ToIntE(a any) (int, error)
- func ToString(a any) string
- func ToStringE(a any) (string, error)
- func ToStringer(a any) fmt.Stringer
- func ToStringerE(a any) (fmt.Stringer, error)
- func ToTimeZone(a any) *time.Location
- func ToTimeZoneE(a any) (*time.Location, error)
- func ToUint(i any) uint
- func ToUint16(i any) uint16
- func ToUint16E(a any) (uint16, error)
- func ToUint32(i any) uint32
- func ToUint32E(a any) (uint32, error)
- func ToUint64(i any) uint64
- func ToUint64E(a any) (uint64, error)
- func ToUint8(i any) uint8
- func ToUint8E(a any) (uint8, error)
- func ToUintE(a any) (uint, error)
Constants ¶
View Source
const UTC = "UTC"
Variables ¶
This section is empty.
Functions ¶
func ToBigFloat ¶
ToBigFloat casts an interface to a *big.Float type.
func ToBigFloatE ¶
ToBigFloatE casts an interface to a *big.Float type.
func ToComplex128 ¶
func ToComplex128(i any) complex128
ToComplex128 casts an interface to a complex128 type.
func ToComplex128E ¶
func ToComplex128E(a any) (complex128, error)
ToComplex128E casts an interface to a complex128 type.
func ToComplex64 ¶
ToComplex64 casts an interface to a complex64 type.
func ToComplex64E ¶
ToComplex64E casts an interface to a complex64 type.
func ToDuration ¶
func ToFloat32E ¶
ToFloat32E casts an interface to a float32 type.
func ToFloat64E ¶
ToFloat64E casts an interface to a float64 type.
func ToStringer ¶
ToStringer casts an interface to a fmt.Stringer type.
func ToStringerE ¶
ToStringerE casts an interface to a fmt.Stringer type.
func ToTimeZone ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.