godep

package
v0.0.0-...-7425b01 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package godep provides basic importing of Godep dependencies.

This is not a complete implementation of Godep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(dir string) bool

Has is a command to detect if a package contains a Godeps.json file.

func Parse

func Parse(dir string) ([]*cfg.Dependency, error)

Parse parses a Godep's Godeps file.

It returns the contents as a dependency array.

Types

type Dependency

type Dependency struct {
	ImportPath string
	Comment    string `json:",omitempty"` // Description of commit, if present.
	Rev        string // VCS-specific commit ID.
}

Dependency is a modified version of Godep's Dependency struct. It drops all of the unexported fields.

type Godeps

type Godeps struct {
	ImportPath string
	GoVersion  string
	Packages   []string `json:",omitempty"` // Arguments to save, if any.
	Deps       []Dependency
	// contains filtered or unexported fields
}

The Godeps struct from Godep.

https://raw.githubusercontent.com/tools/godep/master/dep.go

We had to copy this because it's in the package main for Godep.

Jump to

Keyboard shortcuts

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