cmddeps

package
v0.0.0-...-1a3f41a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	// contains filtered or unexported fields
}

Deps is the manager that holds the dependencies

func NewDeps

func NewDeps() Deps

NewDeps creates a new Deps

func (*Deps) Get

func (dep *Deps) Get(name string) T

Get retrieves the dependency with given name

func (*Deps) Set

func (dep *Deps) Set(name string, t T)

Set will create or orvewrite the dependency with given name

type T

type T interface{}

T is just a blank interface type

Jump to

Keyboard shortcuts

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