MCPcopy
hub / github.com/apache/casbin / JoinSlice

Function JoinSlice

util/util.go:207–214  ·  view source on GitHub ↗

JoinSlice joins a string and a slice into a new slice.

(a string, b ...string)

Source from the content-addressed store, hash-verified

205
206// JoinSlice joins a string and a slice into a new slice.
207func JoinSlice(a string, b ...string) []string {
208 res := make([]string, 0, len(b)+1)
209
210 res = append(res, a)
211 res = append(res, b...)
212
213 return res
214}
215
216// JoinSliceAny joins a string and a slice into a new interface{} slice.
217func JoinSliceAny(a string, b ...string) []interface{} {

Callers 7

AddPermissionForUserMethod · 0.92
AddPermissionsForUserMethod · 0.92
HasPermissionForUserMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…