Edit any files in user dir

This commit is contained in:
Wancat
2022-11-16 01:48:55 +08:00
parent 22229fc5bc
commit f5ace34852
7 changed files with 79 additions and 22 deletions

10
utils.go Normal file
View File

@@ -0,0 +1,10 @@
package main
func contain[T comparable](arr []T, elem T) bool {
for _, v := range arr {
if v == elem {
return true
}
}
return false
}