Expand description
§use-go-work
go.work workspace metadata primitives for RustUse.
§Experimental
use-go-work is experimental while use-go remains below 0.3.0.
§Example
use use_go_work::{GoWorkDirective, GoWorkFile, GoWorkModulePath, GoWorkUseDirective};
let module = GoWorkModulePath::new("./app")?;
let file = GoWorkFile::new().with_directive(GoWorkDirective::Use(GoWorkUseDirective::new(module)));
assert_eq!(file.directives().len(), 1);§Scope
go.workconfig file and directive metadata.- Workspace module path metadata.
- Workspace layout labels.
§Non-goals
- Complete
go.workparsing. - Workspace or module resolution.
- Shelling out to
go work. - Generating Go workspaces.
§License
Licensed under either Apache-2.0 or MIT.
Structs§
- GoWork
File - Lightweight
go.workfile metadata. - GoWork
Module Path - Validated
go.workmodule path metadata. - GoWork
Replace Directive replacedirective metadata.- GoWork
UseDirective usedirective metadata.
Enums§
- GoWork
Config File go.workconfig file kind.- GoWork
Directive go.workdirective metadata.- GoWork
Error - Error returned by Go workspace metadata constructors.
- GoWorkspace
Layout - Go workspace layout metadata.