File: debug.go

package info (click to toggle)
golang-github-azure-go-amqp 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,192 kB
  • sloc: makefile: 22
file content (17 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build !debug
// +build !debug

package debug

// dummy functions used when debugging is not enabled

// Log writes the formatted string to stderr.
// Level indicates the verbosity of the messages to log.
// The greater the value, the more verbose messages will be logged.
func Log(_ int, _ string, _ ...any) {}

// Assert panics if the specified condition is false.
func Assert(bool) {}

// Assert panics with the provided message if the specified condition is false.
func Assertf(bool, string, ...any) {}