bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
619 stars 189 forks source link

changed the example_test.go so it stops reading when "\n\r" is received #80

Closed lukasbeckercode closed 4 years ago

lukasbeckercode commented 4 years ago

I changed the example so it stops reading automatically when a newline an dcarriage return is received. I am kind of new to github, so please tell me if i did something wrong!