From 3946acd554b04ce796c19b4bf468d1b11603a92c Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 5 Jan 2024 13:16:01 +0100 Subject: [PATCH] docs: Fix formatting --- .web/docs/developers/index.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.web/docs/developers/index.md b/.web/docs/developers/index.md index f7e78008..d54427ca 100644 --- a/.web/docs/developers/index.md +++ b/.web/docs/developers/index.md @@ -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() } ```