module

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 1 Imported by: 29

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalVersion

func CanonicalVersion(v string) string

func Check

func Check(path, version string) error

func CheckFilePath

func CheckFilePath(path string) error

func CheckImportPath

func CheckImportPath(path string) error

func CheckPath

func CheckPath(path string) error

func DecodePath

func DecodePath(encoding string) (path string, err error)

func DecodeVersion

func DecodeVersion(encoding string) (v string, err error)

func EncodePath

func EncodePath(path string) (encoding string, err error)

func EncodeVersion

func EncodeVersion(v string) (encoding string, err error)

func MatchPathMajor

func MatchPathMajor(v, pathMajor string) bool

func Sort

func Sort(list []Version)

func SplitPathVersion

func SplitPathVersion(path string) (prefix, pathMajor string, ok bool)

Types

type Version

type Version = module.Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL