MCPcopy
hub / github.com/livebud/bud / loadControllerPath

Method loadControllerPath

framework/controller/loader.go:106–112  ·  view source on GitHub ↗
(controllerPath string)

Source from the content-addressed store, hash-verified

104}
105
106func (l *loader) loadControllerPath(controllerPath string) string {
107 parts := strings.SplitN(controllerPath, "/", 2)
108 if len(parts) == 1 {
109 return "/"
110 }
111 return "/" + parts[1]
112}
113
114func (l *loader) loadControllerName(controllerPath string) string {
115 return text.Space(controllerPath)

Callers 1

loadControllerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected