colourise the terminal

This commit is contained in:
2023-03-08 19:04:53 +00:00
parent 11ed803601
commit f7603e30c4
18 changed files with 373 additions and 76 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"fmt"
"os"
)
type ArErr struct {
@@ -20,6 +19,5 @@ func panicErr(err ArErr) {
fmt.Println(" " + err.code)
fmt.Println()
}
fmt.Println(err.TYPE+":", err.message)
os.Exit(1)
fmt.Printf("\x1b[%dm%s\x1b[0m", 91, fmt.Sprint(err.TYPE, ": ", err.message, "\n"))
}