Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
whalecold committed Jul 19, 2023
1 parent b73d995 commit 1535ef3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nacos/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
)

const (
defaultContext = ""
defaultContent = ""
)

// CustomFunction use for customize the config parameters.
Expand Down Expand Up @@ -69,7 +69,7 @@ func render(name, format string, cpc *ConfigParamConfig) string {
// NaocsConfigParam Get nacos config from environment variables. All the parameters can be customized with CustomFunction.
// ConfigParam explain:
// 1. Type: data format, support JSON and YAML, JSON by default. Could extend it by implementing the ConfigParser interface.
// 2. Context: empty by default. Customize with CustomFunction.
// 2. Content: empty by default. Customize with CustomFunction.
// 3. Group: DEFAULT_GROUP by default.
// 4. DataId: {{.ClientServiceName}}.{{.ServerServiceName}}.{{.Category}} by default. Customize it by CustomFunction or
// use specified format. ref: nacos/env.go:46
Expand All @@ -78,7 +78,7 @@ func NaocsConfigParam(cpc *ConfigParamConfig, cfs ...CustomFunction) vo.ConfigPa
DataId: render("dataId", NacosConfigDataId(), cpc),
Group: render("group", NacosConfigGroup(), cpc),
Type: vo.JSON,
Content: defaultContext,
Content: defaultContent,
}
for _, cf := range cfs {
cf(&param)
Expand Down

0 comments on commit 1535ef3

Please sign in to comment.