aboutsummaryrefslogtreecommitdiffstats
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/util.go b/util.go
deleted file mode 100644
index 22f9cb2..0000000
--- a/util.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-import (
- "fmt"
- "os"
-)
-
-func Check(err error) {
- if err != nil {
- fmt.Println(err)
- os.Exit(1)
- }
-}
-
-func Insert[T any](slice []T, elem T, i int) []T {
- return append(slice[:i], append([]T{elem}, slice[i:]...)...)
-}
-
-func Remove[T any](slice []T, i int) []T {
- return append(slice[:i], slice[i+1:]...)
-}