initial commits

master
Charles Iliya Krempeaux 2023-11-06 04:27:11 -08:00
parent 97326339f8
commit 13e7cedb60
1 changed files with 21 additions and 0 deletions

View File

@ -6,6 +6,27 @@ import (
"sourcecode.social/reiver/go-opt" "sourcecode.social/reiver/go-opt"
) )
// Number represents a JSON number literal as defined by IETF RFC-8259.
//
// number = [ minus ] int [ frac ] [ exp ]
//
// decimal-point = %x2E ; .
//
// digit1-9 = %x31-39 ; 1-9
//
// e = %x65 / %x45 ; e E
//
// exp = e [ minus / plus ] 1*DIGIT
//
// frac = decimal-point 1*DIGIT
//
// int = zero / ( digit1-9 *DIGIT )
// minus = %x2D ; -
//
// plus = %x2B ; +
//
// zero = %x30 ; 0
type Number struct { type Number struct {
opt.Optional[string] opt.Optional[string]
} }