Documentation ¶
Index ¶
- func DepKey(filed reflect.StructField) (string, bool)
- func Injection(field, value reflect.Value) error
- func TypeKey(t any) string
- type Constructor
- type Space
- func (space *Space) Cache() map[string]*reflect.Value
- func (space *Space) CacheCheck(key string, value any) (string, error)
- func (space *Space) Constructor(New ...any)
- func (space *Space) Get(ref string) *reflect.Value
- func (space *Space) Put(key string, value any) error
- func (space *Space) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepKey ¶
func DepKey(filed reflect.StructField) (string, bool)
DepKey 通过字段结构获取依赖 key 优先获取 tag属性的ref值 没有ref属性值 则获取包路径加类型全面
Types ¶
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
func (*Space) CacheCheck ¶
CacheCheck 向容器添加缓存检查,返回检查错误或者生成key 容器只接受纸箱结构体的指针变量
func (*Space) Constructor ¶ added in v1.3.15
Click to show internal directories.
Click to hide internal directories.