MCPcopy Create free account
hub / github.com/francoispqt/gojay / UnmarshalJSONObject

Method UnmarshalJSONObject

decode_sqlnull_test.go:211–223  ·  view source on GitHub ↗
(dec *Decoder, k string)

Source from the content-addressed store, hash-verified

209}
210
211func (s *SQLDecodeObject) UnmarshalJSONObject(dec *Decoder, k string) error {
212 switch k {
213 case "s":
214 return dec.AddSQLNullString(&s.S)
215 case "f":
216 return dec.AddSQLNullFloat64(&s.F)
217 case "i":
218 return dec.AddSQLNullInt64(&s.I)
219 case "b":
220 return dec.AddSQLNullBool(&s.B)
221 }
222 return nil
223}
224
225func (s *SQLDecodeObject) NKeys() int {
226 return 0

Callers

nothing calls this directly

Calls 4

AddSQLNullStringMethod · 0.45
AddSQLNullFloat64Method · 0.45
AddSQLNullInt64Method · 0.45
AddSQLNullBoolMethod · 0.45

Tested by

no test coverage detected