16 lines
245 B
Go
16 lines
245 B
Go
package app
|
|
|
|
import "log"
|
|
|
|
func Panic(v ...any) {
|
|
log.Panicln(Name + ":", v)
|
|
}
|
|
|
|
func Panicf(format string, v ...any) {
|
|
log.Panicf(Name + ": " + format, v...)
|
|
}
|
|
|
|
func Panicln(v ...any) {
|
|
v = append([]any{Name + ":"}, v...)
|
|
log.Panicln(v...)
|
|
} |