Skip to content

Commit

Permalink
Merge pull request #73 from osspkg/fix-di
Browse files Browse the repository at this point in the history
Fix di
  • Loading branch information
markus621 authored Jan 4, 2024
2 parents 44d3ad8 + 879e74b commit d6620c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions app/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
18 changes: 9 additions & 9 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ replace (
)

require (
go.osspkg.com/goppy/app v0.1.7
go.osspkg.com/goppy/app v0.1.8
go.osspkg.com/goppy/console v0.1.0
go.osspkg.com/goppy/errors v0.1.0
go.osspkg.com/goppy/iofile v0.1.4
Expand Down
2 changes: 1 addition & 1 deletion xdns/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit d6620c6

Please sign in to comment.