# 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
```rust
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);
# Ok::<(), use_go_work::GoWorkError>(())
```
## Scope
- `go.work` config file and directive metadata.
- Workspace module path metadata.
- Workspace layout labels.
## Non-goals
- Complete `go.work` parsing.
- Workspace or module resolution.
- Shelling out to `go work`.
- Generating Go workspaces.
## License
Licensed under either Apache-2.0 or MIT.