parse

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B32Bytes added in v0.2.0

func B32Bytes(str string) (types.B32Bytes, error)

func B64Bytes added in v0.2.0

func B64Bytes(str string) (types.B64Bytes, error)

func Bool

func Bool(str string) (bool, error)

func Complex128

func Complex128(str string) (complex128, error)

func Complex64

func Complex64(str string) (complex64, error)

func Duration

func Duration(str string) (time.Duration, error)

func Float32

func Float32(str string) (float32, error)

func Float64

func Float64(str string) (float64, error)

func GetParser

func GetParser[P Parseable](take *P) func(string) (P, error)

func HexByte added in v0.2.0

func HexByte(str string) (types.HexByte, error)

func HexBytes added in v0.2.0

func HexBytes(str string) (types.HexBytes, error)

func Int

func Int(str string) (int, error)

func Int16

func Int16(str string) (int16, error)

func Int32

func Int32(str string) (int32, error)

func Int64

func Int64(str string) (int64, error)

func Int8

func Int8(str string) (int8, error)

func Language

func Language(str string) (language.Tag, error)

func Location

func Location(str string) (time.Location, error)

func Must

func Must[P Parseable](parser func(string) (P, error)) func(string) P

func MustParse

func MustParse[P Parseable](take *P, str string)

func OctByte added in v0.2.0

func OctByte(str string) (types.OctByte, error)

func Parse

func Parse[P Parseable](take *P, str string) error

func ParseArray added in v0.2.0

func ParseArray[P Parseable](parser func(string) (P, error)) func(string) ([]P, error)

func String

func String(str string) (string, error)

func Time

func Time(str string) (time.Time, error)

func Uint

func Uint(str string) (uint, error)

func Uint16

func Uint16(str string) (uint16, error)

func Uint32

func Uint32(str string) (uint32, error)

func Uint64

func Uint64(str string) (uint64, error)

func Uint8

func Uint8(str string) (uint8, error)

Types

Jump to

Keyboard shortcuts

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