Skip to content

Commit

Permalink
🔍 Update component reference in bff.go.tpl (#25)
Browse files Browse the repository at this point in the history
This PR refactors the `bff.go.tpl` template file to update the component
reference, making it more consistent and flexible by using a placeholder
for the component name.


![image](https://github.com/user-attachments/assets/2027636c-c215-4a88-9382-c011a8907169)
  • Loading branch information
renanbastos93 authored Oct 25, 2024
2 parents c519eb2 + 5d725b6 commit bec59b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/files/bff.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

type implBFF struct {
weaver.Implements[weaver.Main]
example weaver.Ref[app.Component]
example weaver.Ref[{{.ComponentName}}.Component]
bff weaver.Listener `weaver:"bff"`

f *fiber.App
Expand Down

0 comments on commit bec59b4

Please sign in to comment.