Documentation ¶
Index ¶
- func FormatBool[Bool ~bool](b Bool) string
- func FormatBoolSlice[Bool ~bool](s []Bool) []string
- func FormatFloat[Float constraints.Float](f Float, fmt byte, prec, bitSize int) string
- func FormatFloatSlice[Float constraints.Float](s []Float, fmt byte, prec, bitSize int) []string
- func FormatInt[Signed constraints.Signed](i Signed, base int) string
- func FormatIntSlice[Signed constraints.Signed](s []Signed, base int) []string
- func FormatUint[Unsigned constraints.Unsigned](i Unsigned, base int) string
- func FormatUintSlice[Unsigned constraints.Unsigned](s []Unsigned, base int) []string
- func ParseBool(s string) (bool, error)
- func ParseBoolSlice(s []string) ([]bool, error)
- func ParseBytesSlice(s []string) [][]byte
- func ParseFloat[Float constraints.Float](s string, bitSize int) (Float, error)
- func ParseFloatSlice[Float constraints.Float](s []string, bitSize int) ([]Float, error)
- func ParseInt[Signed constraints.Signed](s string, base int, bitSize int) (Signed, error)
- func ParseIntSlice[Signed constraints.Signed](s []string, base int, bitSize int) ([]Signed, error)
- func ParseUint[Unsigned constraints.Unsigned](s string, base int, bitSize int) (Unsigned, error)
- func ParseUintSlice[Unsigned constraints.Unsigned](s []string, base int, bitSize int) ([]Unsigned, error)
- func Quote[E ~string](e E, quote string) E
- func QuoteSlice[S ~[]E, E ~string](s S, quote string) S
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBool ¶
FormatBool takes a boolean-type generic parameter `b`, converts it to a string, and returns the string.
func FormatBoolSlice ¶
func FormatFloat ¶
func FormatFloat[Float constraints.Float](f Float, fmt byte, prec, bitSize int) string
func FormatFloatSlice ¶
func FormatFloatSlice[Float constraints.Float](s []Float, fmt byte, prec, bitSize int) []string
func FormatIntSlice ¶
func FormatIntSlice[Signed constraints.Signed](s []Signed, base int) []string
func FormatUint ¶
func FormatUint[Unsigned constraints.Unsigned](i Unsigned, base int) string
FormatUint converts an unsigned integer to a string representation in a specified base. It does this by first converting the integer to a uint64 and then using the strconv.FormatUint function to format it as a string in the desired base.
func FormatUintSlice ¶
func FormatUintSlice[Unsigned constraints.Unsigned](s []Unsigned, base int) []string
func ParseBoolSlice ¶
func ParseBytesSlice ¶
func ParseFloat ¶
func ParseFloat[Float constraints.Float](s string, bitSize int) (Float, error)
func ParseFloatSlice ¶
func ParseFloatSlice[Float constraints.Float](s []string, bitSize int) ([]Float, error)
func ParseIntSlice ¶
func ParseUintSlice ¶
func QuoteSlice ¶
QuoteSlice quotes each string in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.