How do I call the written component in the program in a conventional way?
21 views
Skip to first unread message
kevin xin
unread,
Mar 21, 2024, 6:58:25 PM3/21/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Service Weaver
How do I call the written component in the program in a conventional way? That is, directly accessing the method of a component in the program. Thank you.
Suresh Kumar R
unread,
Mar 30, 2024, 9:39:38 AM3/30/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Service Weaver
It's an anti pattern in service weaver. What is the reason behind this requirement?
If you must, You can just instantiate the implementation and assign it to interface type and call it as any other Go code.