Skip to content

Commit

Permalink
add go highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Gajewski committed Nov 8, 2016
1 parent 3ae4225 commit a2b9346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

For example if plugin exports `AddTwoInts(a, b int) int` function and `BuildVersion string` variable instead of using [Plugin.Lookup](https://tip.golang.org/pkg/plugin/#Plugin.Lookup) directly:

```
```go
plug, err := plugin.Open("plugin.so")

if err != nil {
Expand Down Expand Up @@ -43,7 +43,7 @@ if typed, ok := symbol.(*string); ok {

you can just simply do:

```
```go
plug, err := BindPluginAPI("plugin.so") // plug is *BingPluginAPI

if err != nil {
Expand Down

0 comments on commit a2b9346

Please sign in to comment.