fastparse

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Copyright (c) 2025 EterLine (Andrew) This file is part of fstmon. Licensed under the MIT License. See the LICENSE file for details.

Copyright (c) 2025 EterLine (Andrew) This file is part of fstmon. Licensed under the MIT License. See the LICENSE file for details.

Copyright (c) 2025 EterLine (Andrew) This file is part of fstmon. Licensed under the MIT License. See the LICENSE file for details.

Copyright (c) 2025 EterLine (Andrew) This file is part of fstmon. Licensed under the MIT License. See the LICENSE file for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFloat

func ParseFloat[F Float](b []byte) (F, error)

func ParseInt

func ParseInt[I Int](b []byte) (I, error)

func ParseUint

func ParseUint[U Uint](b []byte) (U, error)

func StringParseFloat

func StringParseFloat[F Float](s string) (F, error)

func StringParseInt

func StringParseInt[I Int](s string) (I, error)

func StringParseUint

func StringParseUint[U Uint](s string) (U, error)

Types

type FastparseError

type FastparseError string
const (
	ErrEmptyInput   FastparseError = "empty input"
	ErrInvalidFloat FastparseError = "invalid float format"
	ErrInvalidInt   FastparseError = "invalid int format"
	ErrInvalidUint  FastparseError = "invalid uint format"
)

func (FastparseError) Error

func (er FastparseError) Error() string

type Float

type Float interface {
	~float32 | ~float64
}

type Int

type Int interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Jump to

Keyboard shortcuts

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