importer

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 8 Imported by: 88

Documentation

Overview

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

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, GB and gom.

Types

type DefaultImporter

type DefaultImporter struct{}

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

func (*DefaultImporter) Import

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

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

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