This commit is contained in:
vxclutch
2026-05-27 08:30:51 -04:00
parent 060200c998
commit 71ffad466b
12 changed files with 175 additions and 66 deletions

7
internal/errx/error.go Normal file
View File

@@ -0,0 +1,7 @@
package errx
import "fmt"
func Error(err string) {
fmt.Println("error:", "lash:", err)
}

15
internal/errx/perror.go Normal file
View File

@@ -0,0 +1,15 @@
package errx
import (
"fmt"
"os"
)
func Perror(err error) {
fmt.Println("error:", "lash:", err)
}
func FatalPerror(err error) {
Perror(err)
os.Exit(1)
}

7
internal/errx/print.go Normal file
View File

@@ -0,0 +1,7 @@
package errx
import "fmt"
func Log(msg string, k... any) {
fmt.Printf("lash: " + msg + "\n", k...)
}