1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package main func min(a uint, b uint) uint { if a > b { return b } return a } func sendSignal(c chan struct{}) { select { case c <- struct{}{}: default: } }