Skip to content

Commit

Permalink
Update extensive-go-plugin-tutorial.md
Browse files Browse the repository at this point in the history
Maps not defined correctly and spell error.
  • Loading branch information
shubham-cmyk authored May 20, 2022
1 parent 11fe515 commit 750f3a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/extensive-go-plugin-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ And last but not least is the `Plugins` map. This map is used in order to identi

~~~go
// pluginMap is the map of plugins we can dispense.
var pluginMap = map[string]plugin.Pluglin "greeter": &example.GreeterPlugin{},
}
var pluginMap = map[string]plugin.Plugin{"greeter": &example.GreeterPlugin{}}
~~~

You can see that the key is the name of the plugin and the value is the plugin.
Expand Down

0 comments on commit 750f3a4

Please sign in to comment.