diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-19 05:38:51 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-19 05:39:27 -0400 |
commit | 83f436e175643da6d75e1de3fe905b586012bac2 (patch) | |
tree | f250b9fdaca68941863caad5c778bccdf45099ca /util.go | |
parent | aeb85efdad3dd705894386aa9aef5e22db1541b8 (diff) |
Command line flags
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 7 |
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) + } +} |