MCPcopy
hub / github.com/jackc/pgx / setupStructScanTargets

Function setupStructScanTargets

rows.go:864–871  ·  view source on GitHub ↗
(receiver any, fields []structRowField)

Source from the content-addressed store, hash-verified

862}
863
864func setupStructScanTargets(receiver any, fields []structRowField) []any {
865 scanTargets := make([]any, len(fields))
866 v := reflect.ValueOf(receiver).Elem()
867 for i, f := range fields {
868 scanTargets[i] = v.FieldByIndex(f.path).Addr().Interface()
869 }
870 return scanTargets
871}

Callers 2

ScanRowMethod · 0.85
ScanRowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected