(value bool, message ...any)
| 43 | } |
| 44 | |
| 45 | func Assert(value bool, message ...any) { |
| 46 | if value { |
| 47 | return |
| 48 | } |
| 49 | assertSlow(message...) |
| 50 | } |
| 51 | |
| 52 | func assertSlow(message ...any) { |
| 53 | // See https://dave.cheney.net/2020/05/02/mid-stack-inlining-in-go |