importer

package
v0.0.0-...-81b44d8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package importer imports dependency configuration from Gopkg, 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 Gopkg, Godep, GPM, GB and gom.

Types

type DefaultImporter

type DefaultImporter struct{}

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

func (*DefaultImporter) Import

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

Import tries to import configuration from Gopkg, 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