mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-28 00:18:51 +00:00
15 lines
174 B
Go
15 lines
174 B
Go
|
//go:build debug
|
||
|
// +build debug
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/rs/zerolog/log"
|
||
|
)
|
||
|
|
||
|
func assert(cond bool, msg string) {
|
||
|
if !cond {
|
||
|
log.Fatal().Stack().Msg(msg)
|
||
|
}
|
||
|
}
|