file

package
v0.0.0-...-ab4cb45 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dep

type Dep struct {
	Path     string
	Version  string
	Error    string
	Info     string
	GoMod    string
	Zip      string
	Dir      string
	Sum      string
	GoModSum string
}

Dep represents parsed dependency json data.

func ParseDownloadJSON

func ParseDownloadJSON(raw string) []Dep

ParseDownloadJSON parses the dependency file into a data structure.

type GoMod

type GoMod struct {
	Module  Module
	Go      string
	Require []Require
	Exclude []Module
	Replace []Replace
	Retract []Retract
}

GoMod represents parsed module json data.

func ParseModJSON

func ParseModJSON(raw string) GoMod

ParseModJSON parses the mode file into a data structure.

type Module

type Module struct {
	Path    string
	Version string
}

Module represents parsed module json data.

type Replace

type Replace struct {
	Old Module
	New Module
}

Replace represents parsed module json data.

type Require

type Require struct {
	Path     string
	Version  string
	Indirect bool
}

Require represents parsed module json data.

type Retract

type Retract struct {
	Low       string
	High      string
	Rationale string
}

Retract represents dependency version that are retracted.

type VendorDir

type VendorDir struct {
	// contains filtered or unexported fields
}

VendorDir represents a vendor directory.

func InitVendorDir

func InitVendorDir(options cli.Options) VendorDir

InitVendorDir creates a new vendor directory.

func (*VendorDir) CopyDependencies

func (v *VendorDir) CopyDependencies()

CopyDependencies copies remote module level dependencies transitively.

Jump to

Keyboard shortcuts

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