importer

package
Version: v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: MIT Imports: 8 Imported by: 0

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL