The highest tagged major version is
v2.
module
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Mar 26, 2024
License: MIT
Opens a new window with license information.
README
¶
Links
之前的ioc
map形式,注册name:“interface"
如果掉用其方法,就是实现init,这样才调
现在的ioc
切片,只需要注册 name,version
如果掉用其方法,就是实现init,这样才调,但是这种方式只要name和version,比上面更复杂好用
app1 ioc1 是老的版本 map
app ioc 是新的版本 slice
补充业务异常
req := ioc.NewLoadConfigRequest()
req.ConfigFile.Enabled = true
req.ConfigFile.Path = "/Users/kade.chen/go12-project/sso/etc/application.toml"
ioc.DevelopmentSetup(req)
自动加载注册init所有ioc
补充细节 cookis业务报错 测试例子
git tag v1.1.4
git push -f https://gitee.com/go-kade/library.git v1.1.4
https://pkg.go.dev/gitee.com/go-kade/library/tree/v1.1.4
test
Directories
¶
examples
|
|
|
|
|
Package docs Code generated by swaggo/swag. |
|
|
|
|
grpc
|
|
|
|
http
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tools
|
|
|
|
types
|
|
|
|
Click to show internal directories.
Click to hide internal directories.