github.com/mappymappy/godiva/lib/godiva

simple golang dependency injection container


Install
go get github.com/mappymappy/godiva/lib/godiva

Documentation

godiva GoDoc

A simple DependencyInjectionContainer for Golang.

Installation:

go get github.com/mappymappy/godiva/lib/godiva

Usages:

register

container := CreateGodivaContainer()
container.Register("chocolate",func (c *Container) (interface{}, error) { return Chocolate{})

create

chocolate := container.Create("chocolate",false)
girl.eat(chocolate)

License

Copyright (c) 2016 marnie_ms4
Released under the MIT license
http://opensource.org/licenses/mit-license.php

About Me

marnie_ms4