summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-19 05:38:51 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-19 05:39:27 -0400
commit83f436e175643da6d75e1de3fe905b586012bac2 (patch)
treef250b9fdaca68941863caad5c778bccdf45099ca /util.go
parentaeb85efdad3dd705894386aa9aef5e22db1541b8 (diff)
Command line flags
Diffstat (limited to 'util.go')
-rw-r--r--util.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.go b/util.go
new file mode 100644
index 000000000..851ee3475
--- /dev/null
+++ b/util.go
@@ -0,0 +1,7 @@
+package main
+
+func Assert(cond bool, msg string) {
+ if !cond {
+ panic(msg)
+ }
+}