// GoroutinesHandlerFunc returns a HandlerFunc that serves list of goroutine groups. func GoroutinesHandlerFunc(summaries map[trace.GoID]*trace.GoroutineSummary) http.HandlerFunc { … } var templGoroutines … // GoroutineHandler creates a handler that serves information about // goroutines in a particular group. func GoroutineHandler(summaries map[trace.GoID]*trace.GoroutineSummary) http.HandlerFunc { … } func stat2Color(statName string) string { … } var templGoroutine …