MCPcopy
hub / github.com/micro/go-micro / derefScanPtr

Function derefScanPtr

model/sqlite/sqlite.go:390–396  ·  view source on GitHub ↗
(ptr any, t reflect.Type)

Source from the content-addressed store, hash-verified

388}
389
390func derefScanPtr(ptr any, t reflect.Type) any {
391 rv := reflect.ValueOf(ptr).Elem()
392 if rv.Type().ConvertibleTo(t) {
393 return rv.Convert(t).Interface()
394 }
395 return rv.Interface()
396}

Callers 2

scanRowFunction · 0.70
scanRowsFunction · 0.70

Calls 1

TypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…