MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / cutStr

Function cutStr

core/validators/validators.go:42–47  ·  view source on GitHub ↗
(str string, max int)

Source from the content-addressed store, hash-verified

40}
41
42func cutStr(str string, max int) string {
43 if len(str) > max {
44 return str[:max] + "..."
45 }
46 return str
47}

Callers 2

UploadedFileSizeFunction · 0.70
UploadedFileMimeTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…