Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MG-RAST/Shock
/ insertUser
Function
insertUser
shock-server/node/acl/acl.go:181–188 ·
view source on GitHub ↗
(arr []user.User, s user.User)
Source
from the content-addressed store, hash-verified
179
}
180
181
func
insertUser(arr []user.User, s user.User) []user.User {
182
for
_, item :=
range
arr {
183
if
item == s {
184
return
arr
185
}
186
}
187
return
append(arr, s)
188
}
Callers
1
FormatDisplayAcl
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected