Re: [go-nuts] Serial streams with EOL defined as CR only.

2022-04-21 Thread Ian Lance Taylor
On Thu, Apr 21, 2022 at 9:27 AM Daniel Jankins wrote: > > I have a serial port that is streaming data. The data is terminated by a /r > only. > I am trying to use scanner.Scan () to break up the lines. Is there a way to > change the scanner end of line character to /r only? See https://pkg.go

[go-nuts] Serial streams with EOL defined as CR only.

2022-04-21 Thread Daniel Jankins
Hi, I have a serial port that is streaming data. The data is terminated by a /r only. I am trying to use scanner.Scan () to break up the lines. Is there a way to change the scanner end of line character to /r only? Thank you config := &serial.Config { Name:lmt.ComPort, Baud:576