mirror of
https://github.com/pushbits/server.git
synced 2025-05-25 14:56:34 +02:00
Restructure project layout
This commit is contained in:
parent
a49db216d5
commit
9a4a096526
32 changed files with 35 additions and 35 deletions
12
internal/assert/assert.go
Normal file
12
internal/assert/assert.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package assert
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
// Assert panics if condition is false.
|
||||
func Assert(condition bool) {
|
||||
if !condition {
|
||||
panic(errors.New("assertion failed"))
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue