number

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalText

func MarshalText[N constraints.Integer](n N) []byte

MarshalText converts a number to bytes.

func UnmarshalText

func UnmarshalText[N constraints.Integer](b []byte) (N, error)

UnmarshalText unmarshals ASCII number bytes to a given numeric type. Behavior for when the number represented by b is > max N is undefined.

Types

This section is empty.

Jump to

Keyboard shortcuts

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