On Mon, Apr 24, 2017 at 9:30 AM, Юрий Соколов <funny.fal...@gmail.com> wrote:
> :-)
> Does os.Exit(1) prints backtrace of all goroutines like unrecovered panic
> does?

    import "runtime/debug"
    fmt.Fprintf(os.Stderr, "it's full of stars!\n")
    debug.PrintStack()
    os.Exit(1)

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to