Skip to content

Instantly share code, notes, and snippets.

package main; import ( "fmt"; "html"; "io
"net/http"; "strconv"; "strings"; "time"
trolMessage struct { Target string; Count
func main() { controlChannel := make(chan
sage; workerCompleteChan := make(chan boo
pollChannel := make(chan chan bool); work
false;go admin(controlChannel, statusPoll
{ select { case respChan := <- statusPoll
Chan <- workerActive; case msg := <-contr
workerActive = true; go doStuff(msg, work