Documentation ¶
Overview ¶
Package ints provide manipulation of integer types.
Index ¶
- Variables
- func ConvertU16[T constraints.Integer](integer T, label string) (u16 uint16, err error)
- func ConvertU32[T constraints.Integer](integer T, label string) (u32 uint32, err error)
- func ConvertU64[T constraints.Integer](integer T, label string) (u64 uint64, err error)
- func ConvertU8[T constraints.Integer](integer T, label string) (u8 uint8, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooLarge = errors.New("value too large")
Functions ¶
func ConvertU16 ¶
func ConvertU16[T constraints.Integer](integer T, label string) (u16 uint16, err error)
func ConvertU32 ¶
func ConvertU32[T constraints.Integer](integer T, label string) (u32 uint32, err error)
func ConvertU64 ¶
func ConvertU64[T constraints.Integer](integer T, label string) (u64 uint64, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.