File size: 174 Bytes
7def60a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//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)
	}
}