use-go
Feature-gated facade crate for the RustUse Go ecosystem primitives.
Experimental
use-go is experimental while the workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
Example
use ;
let version: GoVersion = "go1.22.0".parse?;
let identifier = new?;
let package = new?;
let import = new?;
let module = new?;
let test = new?;
assert_eq!;
assert!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
# Ok::
Scope
- Opt-in access to the focused Go primitive crates.
- A small facade surface that avoids implementation logic.
- Lightweight composition for docs tooling, CLIs, fixtures, and metadata models.
Non-goals
- Adding behavior beyond the child crates.
- Compiling, parsing, formatting, linting, testing, or executing Go code.
- Resolving Go modules, packages, imports, or workspaces.
- Shelling out to Go tooling.
Feature model
The default feature set enables full, which re-exports all focused crates. Disable default features and enable individual features such as version, identifier, module, or go-mod for a narrower dependency surface.
License
Licensed under either Apache-2.0 or MIT.