v, closed := <- ch replaced with v, ok := <- ch, because I miunderstood the syntax before