Доработка

This commit is contained in:
Anatoly Prohacky
2023-01-19 19:13:08 +10:00
parent 450387d25a
commit 2b47ff8e24
13 changed files with 614 additions and 582 deletions

14
pkg/util/errors.go Normal file
View File

@@ -0,0 +1,14 @@
package util
import (
"fmt"
"os"
)
func Check(e error, msg string) {
if e != nil {
fmt.Println(msg)
fmt.Println(e)
os.Exit(1)
}
}