don't use die() anymore, butt dtd go errros

This commit is contained in:
2022-10-03 12:52:26 +02:00
parent 07b65bcff5
commit 65cbaddd5f
5 changed files with 22 additions and 16 deletions

View File

@@ -20,17 +20,11 @@ package lib
import (
"errors"
"fmt"
"os"
"regexp"
"strconv"
"strings"
)
func die(v ...interface{}) {
fmt.Fprintln(os.Stderr, v...)
os.Exit(1)
}
func contains(s []int, e int) bool {
for _, a := range s {
if a == e {