Move handlers to their own package

This commit is contained in:
2022-08-23 13:25:44 -05:00
parent 435884b61a
commit 547063de2e
4 changed files with 90 additions and 64 deletions

10
lib/common.go Normal file
View 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
}