Skip to content

Commit 323bd00

Browse files
authored
Update README.md
1 parent d7cc4c8 commit 323bd00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ Usage of go-bind-plugin:
114114

115115
`func (*PluginAPI) String() string` - provides nice textual representation of the wrapper
116116

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.
122+
117123
### Example generated wrapper information
118124

119125
```

0 commit comments

Comments
 (0)