(src []byte, dst any)
| 230 | type scanPlanBinaryUUIDToTextScanner struct{} |
| 231 | |
| 232 | func (scanPlanBinaryUUIDToTextScanner) Scan(src []byte, dst any) error { |
| 233 | scanner := (dst).(TextScanner) |
| 234 | |
| 235 | if src == nil { |
| 236 | return scanner.ScanText(Text{}) |
| 237 | } |
| 238 | |
| 239 | if len(src) != 16 { |
| 240 | return fmt.Errorf("invalid length for UUID: %v", len(src)) |
| 241 | } |
| 242 | |
| 243 | var buf [16]byte |
| 244 | copy(buf[:], src) |
| 245 | |
| 246 | return scanner.ScanText(Text{String: encodeUUID(buf), Valid: true}) |
| 247 | } |
| 248 | |
| 249 | type scanPlanTextAnyToUUIDScanner struct{} |
| 250 |
nothing calls this directly
no test coverage detected