Skip to content

Commit

Permalink
docs: Add running the Router
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Sep 25, 2024
1 parent 75d4f9c commit 750e259
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 750e259

Please sign in to comment.