Commits

Miki Tebeka committed 904e817

doc

Comments (0)

Files changed (1)

-// Emulate Perl's "die" function
+/* 
+Emulate Perl's "die" function (http://perldoc.perl.org/functions/die.html)
+
+Example:
+
+	import (
+		. "die"
+		"os"
+	)
+
+	func main() {
+		filename := "/path/to/file"
+		file, err := os.Open(filename)
+		if err != nil {
+			Die("can't open %s - %s", filename, err)
+		}
+	}
+*/
 package die
 
 import (