Documentation ¶
Index ¶
- func DecodeURLFromModulePath(modulePath string) (string, error)
- func EncodeURLToModulePath(u string) (string, error)
- func ParseFromZip(zipFileName string) (*witness, error)
- func WriteGoMod(w io.Writer, modulePath string) error
- func WriteZip(w io.Writer, modulePath, version string, hashes map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeURLFromModulePath ¶
DecodeURLFromModulePath is the inverse of EncodeURLToModulePath.
func EncodeURLToModulePath ¶
EncodeURLToModule encodes an arbitrary URL into a form that is compatible with Go module/import paths.
func ParseFromZip ¶
ParseFromZip parses an witness from a zip file. The Zip file should contain a Go module, archived as defined by the goproxy protocol.
func WriteGoMod ¶
WriteGoMod writes a go.mod file for an witness.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.