godep

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package godep provides functions for working with the godep tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UsedIn

func UsedIn(dirname string) (bool, error)

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

Types

type Lockfile

type Lockfile struct {
	ImportPath   string
	GoVersion    string
	GodepVersion string
	Deps         []Package
	// contains filtered or unexported fields
}

Lockfile contains the contents of a godep lockfile.

func FromFile

func FromFile(filename string) (Lockfile, error)

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

func New

func New(dirname string) (Lockfile, error)

New constructs a godep Lockfile while pre-computing the revision lookup.

func (Lockfile) Resolve

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

Resolve implements resolver.Resolver for godep.

type Package

type Package struct {
	ImportPath string
	Rev        string
	Comment    string
}

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

Jump to

Keyboard shortcuts

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