MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / argsContains

Function argsContains

server/handles/task.go:68–70  ·  view source on GitHub ↗
(v T, slice ...T)

Source from the content-addressed store, hash-verified

66}
67
68func argsContains[T comparable](v T, slice ...T) bool {
69 return utils.SliceContains(slice, v)
70}
71
72func getUserInfo(c *gin.Context) (bool, uint, bool) {
73 if user, ok := c.Request.Context().Value(conf.UserKey).(*model.User); ok {

Callers 1

taskRouteFunction · 0.85

Calls 1

SliceContainsFunction · 0.92

Tested by

no test coverage detected