News for hackers. Stuff that matters.
Re:Uber Go Style Guide by _caw on Saturday October 12, 2019 @01:41AM (#21230928)
You may also simply write the following, which appears more elegant than the select.

  if ctx.Err() != nil {
    //then the context has expired or been cancelled
  }

There are no comments on this comment yet.