1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

new x/jsonx season type

This commit is contained in:
Gerasimos (Makis) Maropoulos
2024-09-20 00:59:27 +03:00
parent 3137d0d791
commit 8737f6b691
4 changed files with 133 additions and 10 deletions

View File

@@ -1,11 +1,17 @@
package jsonx
import "bytes"
import (
"bytes"
"errors"
)
var (
quoteLiteral = '"'
emptyQuoteBytes = []byte(`""`)
nullLiteral = []byte("null")
// ErrInvalid is returned when the value is invalid.
ErrInvalid = errors.New("invalid")
)
func isNull(b []byte) bool {