Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all serials #127

Open
gitchander opened this issue Jan 19, 2023 · 4 comments
Open

all serials #127

gitchander opened this issue Jan 19, 2023 · 4 comments

Comments

@gitchander
Copy link

Hello! How I can get all serial ports?

@jd-boyd
Copy link

jd-boyd commented Mar 24, 2023

It would be extremely helpful if a method to list available serial ports was provided.

@FObersteiner
Copy link

FObersteiner commented Apr 20, 2023

This issue already exists

I've implemented a 'serial port finder' in my fork; feel free to adopt :)

@mappedbyte
Copy link

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

@FObersteiner
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants