Move handlers to their own package
This commit is contained in:
10
lib/common.go
Normal file
10
lib/common.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package lib
|
||||
|
||||
func Contains[T comparable](s []T, v T) bool {
|
||||
for _, x := range s {
|
||||
if x == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user