1
0

」 feat: Changed folder structure to comply with the dumb subject

This commit is contained in:
2025-01-12 15:17:52 +01:00
parent 45ef1f3ddf
commit 9f8cf6b3ea
17 changed files with 40 additions and 37 deletions

20
srcs/internal/log/log.go Normal file
View File

@ -0,0 +1,20 @@
package _log
import (
"fmt"
"os"
"time"
)
func Log(Type string, Log string) {
t := time.Now()
t.Format(time.RFC3339)
if Type == "note" {
fmt.Printf("%s-[%s] [Entrypoint]: %s\n", t, Type, Log)
} else if Type == "warn" {
fmt.Fprintf(os.Stderr ,"%s-[%s] [Entrypoint]: %s\n", t, Type, Log)
} else if Type == "error" {
fmt.Fprintf(os.Stderr ,"%s-[%s] [Entrypoint]: %s\n", t, Type, Log)
os.Exit(1)
}
}