feat: better structured internal

This commit is contained in:
2025-12-25 17:21:16 -05:00
parent d9deee0734
commit 3351eaddfc
8 changed files with 102 additions and 31 deletions

View File

@@ -5,6 +5,8 @@ import (
"os"
)
// A helper function to handle errors in the program. If it is given an error,
// the program will exist, and print the error.
func HandleError(err error) {
if err == nil {
return
@@ -12,4 +14,4 @@ func HandleError(err error) {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}