MCPcopy Create free account
hub / github.com/MG-RAST/Shock / insert

Function insert

shock-server/node/acl/acl.go:172–179  ·  view source on GitHub ↗
(arr []string, s string)

Source from the content-addressed store, hash-verified

170}
171
172func insert(arr []string, s string) []string {
173 for _, item := range arr {
174 if item == s {
175 return arr
176 }
177 }
178 return append(arr, s)
179}
180
181func insertUser(arr []user.User, s user.User) []user.User {
182 for _, item := range arr {

Callers 2

FormatDisplayAclMethod · 0.85
SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected