MCPcopy
hub / github.com/sqlc-dev/sqlc / hasPrefixIgnoringSliceAndPointerPrefix

Function hasPrefixIgnoringSliceAndPointerPrefix

internal/codegen/golang/imports.go:503–507  ·  view source on GitHub ↗
(s, prefix string)

Source from the content-addressed store, hash-verified

501}
502
503func hasPrefixIgnoringSliceAndPointerPrefix(s, prefix string) bool {
504 trimmedS := trimSliceAndPointerPrefix(s)
505 trimmedPrefix := trimSliceAndPointerPrefix(prefix)
506 return strings.HasPrefix(trimmedS, trimmedPrefix)
507}
508
509func replaceConflictedArg(imports [][]ImportSpec, queries []Query) []Query {
510 m := make(map[string]struct{})

Callers 4

usesTypeMethod · 0.85
interfaceImportsMethod · 0.85
queryImportsMethod · 0.85
batchImportsMethod · 0.85

Calls 1

Tested by

no test coverage detected