add functions and variables name

This commit is contained in:
2023-02-25 23:34:15 +00:00
parent 636101f1fa
commit 6ef6e051e6
23 changed files with 414 additions and 97 deletions

23
src/error.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"fmt"
"os"
)
type ArErr struct {
TYPE string
message string
line int
path string
code string
EXISTS bool
}
func panicErr(err ArErr) {
fmt.Println(" File:", err.path+":"+fmt.Sprint(err.line))
fmt.Println(" " + err.code)
fmt.Println()
fmt.Println(err.TYPE+":", err.message)
os.Exit(1)
}