f10848f47fa80a163090a05e84588c85660d6aec
Some checks failed
test / native-os-build (macOS-latest) (push) Has been cancelled
test / native-os-build (ubuntu-latest) (push) Has been cancelled
test / native-os-build (windows-latest) (push) Has been cancelled
test / cross-os-build (freebsd amd64) (push) Has been cancelled
test / cross-os-build (linux ppc64le) (push) Has been cancelled
test / cross-os-build (openbsd 386) (push) Has been cancelled
test / cross-os-build (openbsd amd64) (push) Has been cancelled
test / cross-os-build (openbsd arm) (push) Has been cancelled
- 将串口文件描述符设置为非阻塞模式,确保 read() 不会阻塞 - 修改 VMIN 从 1 改为 0,让 select() 正确控制读取超时 - 添加 Timeout 错误代码,超时时正确返回错误而不是 (0, nil) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
go.bug.st/serial
A cross-platform serial port library for Go.
Documentation and examples
See the package documentation here: https://pkg.go.dev/go.bug.st/serial
go.mod transition
This library supports go.mod with the import go.bug.st/serial.
If you came from the pre-go.mod era please update your import paths from go.bug.st/serial.v1 to go.bug.st/serial to receive updates. The latest v1 release is still available using the old import path.
Credits
✨ Thanks to all awesome contributors! ✨
License
This software is released under the BSD 3-clause license.
Description
Languages
Go
100%