bagend.git

commit 815de842a25baceac9f00144a855dbe49ebbece5

Author: Adam <git@apiote.xyz>

add godoc

 bagend.go | 6 ++++++


diff --git a/bagend.go b/bagend.go
index aa8dab1cd80650f176654131f6b824f727ab83a0..688f9b81f8b049f9a6c0b6ec77153ae64c876921 100644
--- a/bagend.go
+++ b/bagend.go
@@ -5,6 +5,10 @@ 	"fmt"
 	"runtime"
 )
 
+
+// TODO always panics with passed message
+// It returns any type so that it can be used in not implemented functions that
+// return values
 func TODO(msg string) interface{} {
 	_, file, no, ok := runtime.Caller(1)
 	var panicmsg string
@@ -16,6 +20,8 @@ 	}
 	panic(panicmsg)
 }
 
+// Assert accepts a condition and a message. It panics with the message if the
+// condition is false
 func Assert(cond bool, msg string) {
 	if !cond {
 		_, file, no, ok := runtime.Caller(1)