Documentation ¶
Overview ¶
Package module is a thin forwarding layer on top of golang.org/x/mod/module. Note that the Encode* and Decode* functions map to Escape* and Unescape* in that package.
See that package for documentation on everything else.
Deprecated: use golang.org/x/mod/module instead.
Index ¶
- func CanonicalVersion(v string) string
- func Check(path, version string) error
- func CheckFilePath(path string) error
- func CheckImportPath(path string) error
- func CheckPath(path string) error
- func DecodePath(encoding string) (path string, err error)
- func DecodeVersion(encoding string) (v string, err error)
- func EncodePath(path string) (encoding string, err error)
- func EncodeVersion(v string) (encoding string, err error)
- func MatchPathMajor(v, pathMajor string) bool
- func Sort(list []Version)
- func SplitPathVersion(path string) (prefix, pathMajor string, ok bool)
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalVersion ¶
func CheckFilePath ¶
func CheckImportPath ¶
func DecodePath ¶
func DecodeVersion ¶
func EncodePath ¶
func EncodeVersion ¶
func MatchPathMajor ¶
func SplitPathVersion ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.