- 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/enumerator
was 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-lint
added & code cleaned.- obsolete
darwin/386
code removed.
ppc64le
build supported #33.
GOOS=android
build supported #29.- Unused second argument for unix build in method
Port.SetTimeoutEx()
was made optional in backward compatibility manner. go 1.13
errors supported:PortError.Unwrap()
method added,PortError.Cause()
method marked as deprecated.
GOOS=darwin GOARCH=arm64
build supported #25.- Fixed regression in
GOOS=darwin
build 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.Port
interface discarded in favor ofserial.Port
structure (similar toos.File
)serial.Mode
discarded and replaced withserial.Option
serial.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