MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Split

Method Split

xmlparser/name.go:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5type Name string
6
7func (n Name) Split() (string, string) {
8 ind := strings.IndexByte(string(n), ':')
9 if ind == -1 {
10 return "", string(n)
11 }
12 return string(n[:ind]), string(n[ind+1:])
13}
14
15func (n Name) Space() string {
16 space, _ := n.Split()

Callers 15

SpaceMethod · 0.95
LocalMethod · 0.95
ContentDispositionValueFunction · 0.80
parseURLOptionsMethod · 0.80
ParsePathMethod · 0.80
parsePathPresetsMethod · 0.80
decodeBase64URLMethod · 0.80
decodePlainURLMethod · 0.80
parsePresetMethod · 0.80
parseStringSliceFunction · 0.80
parseStringSliceSepFunction · 0.80
parseImageTypesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected