Stack traces: Difference between revisions

added Go
m (→‎Icon and Unicon: header simplification)
(added Go)
Line 537:
THEN ." (TORS) " DROP >R ;
[THEN]</lang>
 
=={{header|Go}}==
<lang go>import "runtime/debug"
// ...
 
// to print it to standard error
debug.PrintStack()
// alternately to get it in a variable:
var stackTrace string = string(debug.Stack())</lang>
 
==Icon and {{header|Unicon}}==
Anonymous user