diff --git a/docs/component/02-config.md b/docs/component/02-config.md index 42a2d615e..02d4cd1da 100644 --- a/docs/component/02-config.md +++ b/docs/component/02-config.md @@ -106,7 +106,7 @@ path := "configs/config.yaml" c := config.New( config.WithSource( file.NewSource(path), - ) + ), ) ``` diff --git a/i18n/en/docusaurus-plugin-content-docs/current/component/02-config.md b/i18n/en/docusaurus-plugin-content-docs/current/component/02-config.md index 6131378e5..368245c2b 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/component/02-config.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/component/02-config.md @@ -104,8 +104,9 @@ path := "configs/config.yaml" c := config.New( config.WithSource( file.NewSource(path), - ) + ), ) + ``` If you want to use an external configuration center, you can find one in [contrib/config](https://github.com/go-kratos/kratos/tree/main/contrib/config). Taking Consul as an example: