MCPcopy
hub / github.com/ugorji/go / TryNil

Method TryNil

codec/decode.go:89–89  ·  view source on GitHub ↗

TryNil tries to decode as nil. If a nil is in the stream, it consumes it and returns true. Note: if TryNil returns true, that must be handled.

()

Source from the content-addressed store, hash-verified

87 //
88 // Note: if TryNil returns true, that must be handled.
89 TryNil() bool
90
91 // ContainerType returns one of: Bytes, String, Nil, Slice or Map.
92 //

Implementers 2

cborDecDrivercodec/cbor.go
jsonDecDrivercodec/json.go

Calls

no outgoing calls