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

Function trimSliceAndPointerPrefix

internal/codegen/golang/imports.go:497–501  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

495}
496
497func trimSliceAndPointerPrefix(v string) string {
498 v = strings.TrimPrefix(v, "[]")
499 v = strings.TrimPrefix(v, "*")
500 return v
501}
502
503func hasPrefixIgnoringSliceAndPointerPrefix(s, prefix string) bool {
504 trimmedS := trimSliceAndPointerPrefix(s)

Calls

no outgoing calls

Tested by

no test coverage detected