goproxy

package
v1.22.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PropertyGoMod = "go.mod"
)

Variables

View Source
var (
	ErrInvalidStructure  = util.NewInvalidArgumentErrorf("package has invalid structure")
	ErrGoModFileTooLarge = util.NewInvalidArgumentErrorf("go.mod file is too large")
)

Functions

This section is empty.

Types

type Package

type Package struct {
	Name    string
	Version string
	GoMod   string
}

func ParsePackage

func ParsePackage(r io.ReaderAt, size int64) (*Package, error)

ParsePackage parses the Go package file https://go.dev/ref/mod#zip-files

Jump to

Keyboard shortcuts

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