You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, the zz_generated.ioc.go file generated by the framework is not readable, so it is necessary to add Chinese and English explanations to the generated code, namely the meaning and purpose of each module. Such as:
// struct descriptor registry, these code contains all life cycle definition of the defined struct.// 结构描述符定义部分,该部分包含了提供结构的生命周期信息。funcinit() {
normal.RegisterStructDescriptor(&autowire.StructDescriptor{
Factory: func() interface{} {
return&app_{}
},
})
...// GetApp is getter function of App struct, it returns App struct pointer// GetApp 是 App 结构的 get 方法,可以返回 App 结构指针funcGetApp() (*App, error) {
i, err:=singleton.GetImpl(util.GetSDIDByStructPtr(new(App)), nil)
iferr!=nil {
returnnil, err
}
impl:=i.(*App)
returnimpl, nil
}
// GetAppIOCInterface is getter function of App owned interface 'AppIOCInterface', the returned interface contains proxy layer.// GetAppIOCInterface 是 App 结构专属接口的 get 方法,他返回的接口封装了 App 结构的代理层。funcGetAppIOCInterface() (AppIOCInterface, error) {
i, err:=singleton.GetImplWithProxy(util.GetSDIDByStructPtr(new(App)), nil)
iferr!=nil {
returnnil, err
}
impl:=i.(AppIOCInterface)
returnimpl, nil
}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
At present, the zz_generated.ioc.go file generated by the framework is not readable, so it is necessary to add Chinese and English explanations to the generated code, namely the meaning and purpose of each module. Such as:
The text was updated successfully, but these errors were encountered: