MCPcopy Index your code
hub / github.com/coder/coder / splitRA

Function splitRA

scripts/apikeyscopesgen/main.go:142–148  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

140}
141
142func splitRA(name string) (resource string, action string) {
143 parts := strings.SplitN(name, ":", 2)
144 if len(parts) != 2 {
145 return name, ""
146 }
147 return parts[0], parts[1]
148}
149
150func pascal(s string) string {
151 // Replace non-identifier separators with spaces, then Title-case and strip.

Callers 1

constNameForScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected