- CI: Supported go versions now are
go1.19,go1.20,go1.21 - Applied
go mod tidy -go 1.19 - Package
github.com/albenik/go-serial/enumeratorwas removed as of broken build withgo1.21, please usegithub.com/bugst/go-serial/enumerator— the original well maintained source of the removed package. - Minor code fixes (typo, linter recommendations, etc...)
- Dependencies updated
- BUGFIX: Linux, "bad address" while setting DTR (#41)
go mod tudy -go 1.18.- CI Tests:
go1.18,go1.19,go1.20. - CI Cross-build: cleanup.
golangci-lintadded & code cleaned.- obsolete
darwin/386code removed.
ppc64lebuild supported #33.
GOOS=androidbuild supported #29.- Unused second argument for unix build in method
Port.SetTimeoutEx()was made optional in backward compatibility manner. go 1.13errors supported:PortError.Unwrap()method added,PortError.Cause()method marked as deprecated.
GOOS=darwin GOARCH=arm64build supported #25.- Fixed regression in
GOOS=darwinbuild was introduced inv2.3.0
- Some fixes backported from https://github.com/bugst/go-serial #22.
PortError.Cause()method added
- New Go Module import path
github.com/albenik/go-serial/v2 serial.Portinterface discarded in favor ofserial.Portstructure (similar toos.File)serial.Modediscarded and replaced withserial.Optionserial.Open()method changed to useserila.Option)port.SetMode(mode *Mode)replaced withport.Reconfigure(opts ...Option)Disable HUPCL by default#7WithHUPCL(bool)option introduced- Minor bugfix & refactoring
- Forked from https://github.com/bugst/go-serial
- Minor but incompatible interface & logic changes implemented
- Import path altered