MCPcopy
hub / github.com/pquerna/ffjson / getNumberHandler

Function getNumberHandler

inception/decoder.go:255–263  ·  view source on GitHub ↗
(ic *Inception, name string, takeAddr bool, typ reflect.Type, parsefunc string)

Source from the content-addressed store, hash-verified

253}
254
255func getNumberHandler(ic *Inception, name string, takeAddr bool, typ reflect.Type, parsefunc string) string {
256 return tplStr(decodeTpl["handlerNumeric"], handlerNumeric{
257 IC: ic,
258 Name: name,
259 ParseFunc: parsefunc,
260 TakeAddr: takeAddr,
261 Typ: typ,
262 })
263}
264
265func getNumberSize(typ reflect.Type) string {
266 return fmt.Sprintf("%d", typ.Bits())

Callers 1

handleFieldAddrFunction · 0.85

Calls 1

tplStrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…