github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/readability/in-band-error-client.go (about) 1 // +build OMIT 2 3 package client // OMIT 4 5 func proc(it Iterator) (ret time.Duration) { 6 d := it.DurationAt() 7 if d == duration.Unterminated { // HL 8 ret = -1 9 } else { 10 ret = d 11 } 12 // some code 13 }