package
Version:
v0.0.0-...-d6ebf68
Opens a new window with list of versions in this module.
Published: Feb 4, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
由于没有泛型, 每个类型都需要手动添加方法... 比如 AutoWiredGorm
func Get(beanName string) interface{}
从 beanMap 中 获取 bean 对象
如果 bean 对象为空, 则直接 panic 程序
获取 gorm 对象...
示例 tag: `bean-gorm:"master"`
注册 bean
层级不能太多, 否则可能会引发 stack overflow.
cfg must be a config ptr.
func RunSetter(entry func())
set 方法
传入一个注册方法 .
Source Files
¶
Click to show internal directories.
Click to hide internal directories.