govendor

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 8 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package govendor provides tools for working with govendor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UsedIn

func UsedIn(dirname string) (bool, error)

UsedIn checks whether govendor is used correctly within a project folder.

Types

type Lockfile

type Lockfile struct {
	Comment string
	Ignore  string
	Package []Package
	// contains filtered or unexported fields
}

Lockfile contains the contents of a govendor lockfile.

func FromFile

func FromFile(filename string) (Lockfile, error)

FromFile reads a raw Lockfile from a vendor/vendor.json file.

func New

func New(dirname string) (Lockfile, error)

func (Lockfile) Resolve

func (l Lockfile) Resolve(importpath string) (pkg.Import, error)

type Package

type Package struct {
	Path         string
	ChecksumSHA1 string
	Revision     string
	RevisionTime time.Time
	Version      string
	VersionExact string
}

A Package is a single imported package within a govendor project.

Jump to

Keyboard shortcuts

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