Skip to content

Commit

Permalink
docs: Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Jan 5, 2024
1 parent 4ca92b2 commit 3946acd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .web/docs/developers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ Add and initialize your plugin and execute Gate, that's it!

```go mcproxy.go
func main() {
// Add our "plug-in" to be initialized on Gate start.
proxy.Plugins = append(proxy.Plugins, proxy.Plugin{
Name: "SimpleProxy",
Init: func (ctx context.Context, proxy *proxy.Proxy) error {
return newSimpleProxy(proxy).init() // see code examples
},
})

// Execute Gate entrypoint and block until shutdown.
// We could also run gate.Start if we don't need Gate's command-line.
gate.Execute()
// Add our "plug-in" to be initialized on Gate start.
proxy.Plugins = append(proxy.Plugins, proxy.Plugin{
Name: "SimpleProxy",
Init: func (ctx context.Context, proxy *proxy.Proxy) error {
return newSimpleProxy(proxy).init() // see code examples
},
})
// Execute Gate entrypoint and block until shutdown.
// We could also run gate.Start if we don't need Gate's command-line.
gate.Execute()
}
```

Expand Down

0 comments on commit 3946acd

Please sign in to comment.