"htop" doesn't exit (the channel read blocks until exit), and it uses ANSI escape codes for colorful output. You'd be better served by "top -b -n 1" (Linux) or "top -l1" (macOS).
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/14196080-4cc4-41ae-bbee-87a198b7fc8cn%40googlegroups.com.