From b4d6ea2a81de7e625561b93e9f2476b79ca99d27 Mon Sep 17 00:00:00 2001 From: Reasno Date: Tue, 2 Mar 2021 19:17:02 +0800 Subject: [PATCH] doc: fix cases --- doc/tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 294142c6..4fc0346a 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -3,7 +3,7 @@ At this point, We have introduced the basic concept of package core. Let's learn to use package core by more examples. For readers eager to see the end product, please check out the [skeleton](https://github.com/DoNewsCode/skeleton) demo. -### Phase one: setup a core +### Phase one: Setup #### Construct the core dependencies @@ -230,7 +230,7 @@ dependencies that they might have. The default `DiContainer` implementation is the [uber/dig](https://pkg.go.dev/go.uber.org/dig). For advanced usage, check out their guide. -### Phase three: add functionality. +### Phase three: Add functionality. A module is a group of functionality. It must have certain API, such as HTTP, gRPC, Cron, or command line. @@ -365,7 +365,7 @@ for _, m := range c.Modules() { } ``` -### Phase four: serve! +### Phase four: Serve! In most of the examples we have showed, we use `c.Serve` the run the application. This is appropriate if the application is exclusively long running process.