Registry / utility / x-mod
library0.37.0gogounverified

The golang.org/x/mod package provides utilities for working with Go modules, including module path parsing and version handling.

go get golang.org/x/mod
INSTALL
IMPORT
SIG · X-MOD
X
x-mod
utilitygov0.37.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

module
golang.org/x/mod/module

Encode a module path for use in Go module operations.

package main import ( "fmt" "golang.org/x/mod/module" ) func main() { path, err := module.EncodePath("github.com/example/module") if err != nil { panic(err) } fmt.Println(path) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.37.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
x-mod — go get x-mod · libregistry