Source File
dec_null.go
Belonging Package
github.com/go-faster/jx
package jx
// Null reads a json object as null and
// returns whether it's a null or not.
func ( *Decoder) () error {
if := .skipSpace(); != nil {
return
}
var (
= .offset()
[4]byte
)
if := .readExact4(&); != nil {
return
}
if string([:]) != "null" {
const = 'n' | 'u'<<8 | 'l'<<16 | 'l'<<24
return findInvalidToken4(, , )
}
return nil
}
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |