diff --git a/app/container.go b/app/container.go index 98f4d1c..8cf8ca4 100644 --- a/app/container.go +++ b/app/container.go @@ -102,6 +102,11 @@ func (v *container) prepare() error { inAddress, _ := getReflectAddress(inRefType, nil) v.kahn.Add(inAddress, item.Address) } + for i := 0; i < item.ReflectType.NumOut(); i++ { + outRefType := item.ReflectType.Out(i) + outAddress, _ := getReflectAddress(outRefType, nil) + v.kahn.Add(item.Address, outAddress) + } case reflect.Struct: if item.ReflectType.NumField() == 0 { diff --git a/examples/go.mod b/examples/go.mod index 211603f..4766e56 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -36,25 +36,25 @@ replace ( require ( go.osspkg.com/goppy v0.15.4 - go.osspkg.com/goppy/app v0.1.6 + go.osspkg.com/goppy/app v0.1.7 go.osspkg.com/goppy/auth v0.1.0 go.osspkg.com/goppy/console v0.1.0 go.osspkg.com/goppy/geoip v0.1.0 - go.osspkg.com/goppy/iosync v0.1.3 + go.osspkg.com/goppy/iosync v0.1.4 go.osspkg.com/goppy/ormmysql v0.1.0 go.osspkg.com/goppy/ormpgsql v0.1.0 go.osspkg.com/goppy/ormsqlite v0.1.0 go.osspkg.com/goppy/plugins v0.1.1 - go.osspkg.com/goppy/routine v0.1.3 + go.osspkg.com/goppy/routine v0.1.4 go.osspkg.com/goppy/syscall v0.1.1 go.osspkg.com/goppy/tcp v0.0.0-00010101000000-000000000000 go.osspkg.com/goppy/udp v0.0.2 go.osspkg.com/goppy/unixsocket v0.1.0 - go.osspkg.com/goppy/web v0.1.7 + go.osspkg.com/goppy/web v0.1.8 go.osspkg.com/goppy/ws v0.1.0 go.osspkg.com/goppy/xc v0.1.0 go.osspkg.com/goppy/xdns v0.1.0 - go.osspkg.com/goppy/xlog v0.1.5 + go.osspkg.com/goppy/xlog v0.1.6 ) require ( @@ -71,13 +71,13 @@ require ( github.com/oschwald/geoip2-golang v1.9.0 // indirect github.com/oschwald/maxminddb-golang v1.11.0 // indirect go.osspkg.com/algorithms v1.3.1 // indirect - go.osspkg.com/goppy/encryption v0.1.3 // indirect + go.osspkg.com/goppy/encryption v0.1.4 // indirect go.osspkg.com/goppy/errors v0.1.0 // indirect - go.osspkg.com/goppy/iofile v0.1.3 // indirect + go.osspkg.com/goppy/iofile v0.1.4 // indirect go.osspkg.com/goppy/ioutil v0.1.1 // indirect - go.osspkg.com/goppy/orm v0.1.5 // indirect + go.osspkg.com/goppy/orm v0.1.6 // indirect go.osspkg.com/goppy/random v0.1.1 // indirect - go.osspkg.com/goppy/sqlcommon v0.1.5 // indirect + go.osspkg.com/goppy/sqlcommon v0.1.6 // indirect go.osspkg.com/goppy/xnet v0.1.1 // indirect go.osspkg.com/static v1.4.0 // indirect golang.org/x/mod v0.12.0 // indirect diff --git a/xdns/go.sum b/xdns/go.sum index efa63d3..888982e 100644 --- a/xdns/go.sum +++ b/xdns/go.sum @@ -4,7 +4,7 @@ github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0 github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk= -go.osspkg.com/goppy/xtest v0.1.2 h1:rbUzEnWZW9vkGa24owydA9icQcfOaROJWSym1l0mCtU= +go.osspkg.com/goppy/xtest v0.1.3 h1:zHw8RcWp/Ug0xv9NlZLDb6y/g1ZWJTHD/e15o8g6I5I= golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=