add create functions

This commit is contained in:
2023-02-27 00:07:13 +00:00
parent f0620354c0
commit 1b3a4c44d9
23 changed files with 580 additions and 125 deletions

View File

@@ -15,9 +15,11 @@ type ArErr struct {
}
func panicErr(err ArErr) {
fmt.Println(" File:", err.path+":"+fmt.Sprint(err.line))
fmt.Println(" " + err.code)
fmt.Println()
if err.code != "" && err.line != 0 && err.path != "" {
fmt.Println(" File:", err.path+":"+fmt.Sprint(err.line))
fmt.Println(" " + err.code)
fmt.Println()
}
fmt.Println(err.TYPE+":", err.message)
os.Exit(1)
}