use-go-package 0.0.1

Go package metadata primitives for RustUse
Documentation
  • Coverage
  • 50%
    20 out of 40 items documented1 out of 20 items with examples
  • Size
  • Source code size: 15.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 924.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-go
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-go-package

Go package metadata primitives for RustUse.

Experimental

use-go-package is experimental while use-go remains below 0.3.0.

Example

use use_go_package::{GoPackageName, GoPackagePath, GoPackageVisibility};

let name = GoPackageName::new("http")?;
let path = GoPackagePath::new("net/http")?;

assert_eq!(name.as_str(), "http");
assert_eq!(path.as_str(), "net/http");
assert_eq!(GoPackageVisibility::Public.to_string(), "public");
# Ok::<(), use_go_package::GoPackageError>(())

Scope

  • Go package names and slash-separated package paths.
  • Package visibility, layout, and file-kind labels.
  • Metadata-only package descriptors.

Non-goals

  • Parsing Go source files.
  • Resolving packages or imports.
  • Enforcing all Go compiler package-name rules.

License

Licensed under either Apache-2.0 or MIT.