Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix di #73

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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