di

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name        interface{}
	Constructor interface{}
	Params      []interface{}
	// contains filtered or unexported fields
}

Definition モジュール名と生成の方法の構造体

type IContainer

type IContainer interface {
	Get(key interface{}) interface{}
	Set(d *Definition) interface{}
}

IContainer Container Interface

var Container IContainer

Container DI Container

func New

func New() IContainer

New DI Containerコンストラクタ

type Name

type Name int

Name di name

const (
	// DB database object
	DB Name = 0
)

func Increment

func Increment() Name

Increment DI Type Name Incriment

Jump to

Keyboard shortcuts

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