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

Function regoSliceString

coderd/rbac/astvalue.go:250–256  ·  view source on GitHub ↗
(slice ...T)

Source from the content-addressed store, hash-verified

248}
249
250func regoSliceString[T ~string](slice ...T) *ast.Array {
251 terms := make([]*ast.Term, len(slice))
252 for i, v := range slice {
253 terms[i] = ast.StringTerm(string(v))
254 }
255 return ast.NewArray(terms...)
256}

Callers 2

regoValueMethod · 0.85
regoValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected