convert

package
v0.0.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustToBytes

func MustToBytes(val string) uint64

MustToBytes converts the string to the number of bytes. If the string cannot be converted, it will panic.

func ToBytes

func ToBytes(val string) (uint64, error)

ToBytes converts the string into the number of bytes.

func ValidBytesString

func ValidBytesString(val string) bool

ValidBytesString returns if the string can be converted into bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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