importer

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: 7 Imported by: 0

Documentation

Overview

Package importer imports dependency configuration from Glide, Godep, GPM, and GB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(path string) (bool, []*cfg.Dependency, error)

Import uses the DefaultImporter to import from Glide, Godep, GPM, and GB.

Types

type DefaultImporter

type DefaultImporter struct{}

DefaultImporter imports from Glide, Godep, GPM, and GB.

func (*DefaultImporter) Import

func (d *DefaultImporter) Import(path string) (bool, []*cfg.Dependency, error)

Import tries to import configuration from Glide, Godep, GPM, and GB.

type Importer

type Importer interface {

	// Import imports dependency configuration. It returns:
	// - A bool if any configuration was found.
	// - []*cfg.Dependency containing dependency configuration if any is found.
	// - An error if one was reported.
	Import(path string) (bool, []*cfg.Dependency, error)
}

Importer enables importing depenency configuration.

Jump to

Keyboard shortcuts

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