Thanks for the recommending https://github.com/tarm/serial !

To address John's question: by using a Config, you can set a read
timeout.  (The godoc package doc is out of date).  A few years ago,
before the timeouts were added to the package, similar functionality
could be achieved by wrapping into a channel and having a 2nd channel
for the timeout, but that was awkward and it has been better to have
the timeouts in the package.

Best,
Tarm

On Sun, Jan 28, 2018 at 12:19 PM, Trig <edb1...@gmail.com> wrote:
> I've only used https://github.com/tarm/serial and it hasn't let me down yet.
> It's simple and light-weight... does its job.  Nothing more... nothing less.
>
>
> On Sunday, January 28, 2018 at 1:54:05 PM UTC-6, John Moore wrote:
>>
>> Hi,
>>   I need to talk to external devices with serial (probably just over a USB
>> dongle), and do it from both Windows and Mac.
>>
>>   I see a few libraries out there but little talk about this.
>>
>>   Is anyone doing serial work with golang these days? Are there best
>> libraries? If so, can one avoid hanging forever waiting to receive data that
>> will never arrive?
>>
>> John
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to