remove old cli files

This commit is contained in:
2024-11-03 15:42:39 +00:00
parent d0bd5ca31a
commit a6b20bf676
2 changed files with 0 additions and 165 deletions

23
util.go
View File

@@ -1,23 +0,0 @@
package main
import "flag"
// indexOf returns the index of an element in an array
func indexOf[T comparable](collection []T, e T) int {
for i, x := range collection {
if x == e {
return i
}
}
return -1
}
func isFlagPassed(name string) bool {
found := false
flag.Visit(func(f *flag.Flag) {
if f.Name == name {
found = true
}
})
return found
}