use-go-version
Go version and toolchain primitives for RustUse.
Experimental
use-go-version is experimental while use-go remains below 0.3.0.
Example
use ;
let version: GoVersion = "go1.22.0".parse?;
let toolchain = new;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
# Ok::
Scope
- Lightweight Go version labels such as
1,1.21, andgo1.22.0. - Toolchain and compatibility wrappers around parsed Go versions.
- Version-family helpers for major Go release lines.
Non-goals
- Hardcoded Go release support windows or EOL dates.
- Full Go toolchain discovery.
- Shelling out to
go version. - Module compatibility decisions.
License
Licensed under either Apache-2.0 or MIT.