From 750e2595e0edf56e90c21125d5ede52d75423477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sm=C3=B3=C5=82ka?= Date: Wed, 25 Sep 2024 17:11:05 +0200 Subject: [PATCH] docs: Add running the Router --- docs/content/docs/getting-started.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/content/docs/getting-started.md b/docs/content/docs/getting-started.md index 337e20997..4cebfc3e8 100644 --- a/docs/content/docs/getting-started.md +++ b/docs/content/docs/getting-started.md @@ -320,6 +320,12 @@ The second option is useful when your handler requires dependencies such as a da {{% load-snippet-partial file="src-link/_examples/basic/3-router/main.go" first_line_contains="func printMessages" last_line_contains="return message.Messages{msg}, nil" padding_after="3" %}} {{% /render-md %}} +Finally, run the router. + +{{% render-md %}} +{{% load-snippet-partial file="src-link/_examples/basic/3-router/main.go" first_line_contains="router.Run" last_line_contains="}" padding_after="0" %}} +{{% /render-md %}} + The complete example's source can be found at [/_examples/basic/3-router/main.go](https://github.com/ThreeDotsLabs/watermill/blob/master/_examples/basic/3-router/main.go). ### Logging