template/pkg/assert/assert_disabled.go
2026-07-29 18:57:39 +00:00

12 lines
336 B
Go

//go:build assert_disable
package assert
// That is a no-op in assert_disable builds; the compiler eliminates the call
// and its condition entirely.
func That(_ bool, _ string) {}
// Thatf is a no-op in assert_disable builds; the compiler eliminates the call
// and its condition entirely.
func Thatf(_ bool, _ string, _ ...any) {}