You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,12 @@ Usage of go-bind-plugin:
114
114
115
115
`func (*PluginAPI) String() string` - provides nice textual representation of the wrapper
116
116
117
+
### Wrapper as interface
118
+
119
+
When `-interface` is used instead of generating and returning `struct` interface containing all exported symbols is generated. This eases mocking and working with multiple plugins exporting the same API.
120
+
121
+
**Note** that `-interface` effectively enables `-hide-vars` so variables won't be exported from the plugin.
0 commit comments