On Thu, Nov 21, 2019 at 7:57 PM Robert Engels <reng...@ix.netcom.com> wrote:
> Just use a pipe. Part of the std lib. > I haven't written any production Go code but am a grey beard. Looking at the docs, https://golang.org/pkg/io/#Pipe, a io.Pipe provides somewhat different semantics compared to a traditional ring buffer. Specifically with respect to when "writes" block. Am I misunderstanding something? Substituting an io.Pipe may be fine for the O.P.s specific situation but in general would not be AFAICT. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD_uQqXt%2Br3a4%3DA3XrMVimozY6gtfRGWLpO%2BKFNSSWu1ig%40mail.gmail.com.