Fixes, refactor, a lot of things happen

This commit is contained in:
PB
2022-12-02 21:03:08 +01:00
parent 5adafdd8fb
commit 6f7fdad944
30 changed files with 685 additions and 454 deletions

View File

@@ -1,16 +1,20 @@
package app
import "log"
import (
"log"
)
const AppName = "identity-svc"
func Panic(v ...any) {
log.Panicln(Name+":", v)
log.Panicln(AppName+":", v)
}
func Panicf(format string, v ...any) {
log.Panicf(Name+": "+format, v...)
log.Panicf(AppName+": "+format, v...)
}
func Panicln(v ...any) {
v = append([]any{Name + ":"}, v...)
v = append([]any{AppName + ":"}, v...)
log.Panicln(v...)
}