August 2016
Beginner to intermediate
665 pages
14h 11m
English
As with many such problems—both niche and common—there exists a third-party utility for grabbing your goroutines by the horns.
Tomb is a library that provides diagnostics to go along with any goroutine and channel—it can tell a master channel if another goroutine is dead or dying.
In addition, it allows you to explicitly kill a goroutine, which is a bit more nuanced than simply closing the channel it is attached to. As previously mentioned, closing the channel is effectively neutering a goroutine, although it could ultimately still be active.
You are about to find a simple fetch-and-grab body script that takes a slice of URL structs (with status and URI) and attempts to grab the HTTP response ...
Read now
Unlock full access