Open gitchander opened 1 year ago
It would be extremely helpful if a method to list available serial ports was provided.
This issue already exists
I've implemented a 'serial port finder' in my fork; feel free to adopt :)
Thank you very much for the solution you provided, but when the program is compiled into an executable file, the execution platform may not have GOOS environment variables. Does this also need to be considered
@oneAsiaPeople to my understanding, you'll have to set GOOS when cross-compiling anyways; e.g. I set GOOS=windows GOARCH=amd64 go build [...]
if I want to compile from my Linux machine to Windows.
Hello! How I can get all serial ports?