diff options
Diffstat (limited to 'rrdformat/rrdbinary/util.go')
-rw-r--r-- | rrdformat/rrdbinary/util.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rrdformat/rrdbinary/util.go b/rrdformat/rrdbinary/util.go new file mode 100644 index 0000000..1ae2c57 --- /dev/null +++ b/rrdformat/rrdbinary/util.go @@ -0,0 +1,7 @@ +package rrdbinary + +func panicUnless(ok bool) { + if !ok { + panic("assertion failed") + } +} |