Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapePath ¶
EscapePath applies Go module path escaping (uppercase letters become !lowercase).
func NextMajorPath ¶
NextMajorPath builds the module path for the given major version, respecting the gopkg.in ".vN" convention vs the standard "/vN" convention.
func ParseModulePath ¶
ParseModulePath splits a module path into its base path and current major version number.
Examples:
"github.com/user/gomodule/v2" -> ("github.com/user/gomodule", 2)
"gopkg.in/yaml.v2" -> ("gopkg.in/yaml", 2)
"github.com/google/uuid" -> ("github.com/google/uuid", 1)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.