Skip to content

Commit

Permalink
# fix(pb): 修复fmt包没有引入
Browse files Browse the repository at this point in the history
  • Loading branch information
guihouchang committed Nov 25, 2022
1 parent a81cf5e commit 4bd60f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
)

var _ = new(context.Context)
var _ = fmt.Sprint()
var _ = new(amqp.Table)
var _ = new(wamqp.Config)
var _ = new(message.Message)
Expand Down Expand Up @@ -65,6 +66,7 @@ func generateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.
g.P("// This is a compile-time assertion to ensure that this generated file")
g.P("// is compatible with the kratos package it is being compiled against.")
g.P("var _ = new(", contextPackage.Ident("Context"), ")")
g.P("var _ = ", fmtPackage.Ident("Sprint()"))
g.P("var _ = new(", amqpPackage.Ident("Table"), ")")
g.P("var _ = new(", wamqpPakage.Ident("Config"), ")")
g.P("var _ = new(", messagePackage.Ident("Message"), ")")
Expand Down

0 comments on commit 4bd60f4

Please sign in to comment.