jsonnum

package
v0.0.0-...-5ddd6bb Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReturnCode

type ReturnCode byte
const (
	ReturnCodeErr     ReturnCode = 0
	ReturnCodeInteger ReturnCode = 9  // Translates to jscan.TokenTypeInteger
	ReturnCodeNumber  ReturnCode = 10 // Translates to jscan.TokenTypeNumber
)

func ReadNumber

func ReadNumber[S ~string | ~[]byte](s S) (trailing S, rc ReturnCode)

ReadNumber returns s with the read number value cut off and err=ReturnCodeErr if a syntax error was encountered.

Jump to

Keyboard shortcuts

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