Skip to content

Refactor: configmanager Package's Readability Enhancement#1246

Merged
steinliber merged 2 commits into
devstream-io:mainfrom
merico-ai:test-ht
Nov 22, 2022
Merged

Refactor: configmanager Package's Readability Enhancement#1246
steinliber merged 2 commits into
devstream-io:mainfrom
merico-ai:test-ht

Conversation

@daniel-hutao

Copy link
Copy Markdown
Member

Signed-off-by: Daniel Hu tao.hu@merico.dev

Pre-Checklist

Note: please complete ALL items in the following checklist.

  • I have read through the CONTRIBUTING.md documentation.
  • My code has the necessary comments and documentation (if needed).
  • I have added relevant tests

Description

configmanager package's readability enhancement

Related Issues

N/A

New Behavior (screenshots if needed)

N/A

Signed-off-by: Daniel Hu <tao.hu@merico.dev>
@daniel-hutao daniel-hutao marked this pull request as ready for review November 22, 2022 04:25
@daniel-hutao daniel-hutao requested a review from a team as a code owner November 22, 2022 04:25
@daniel-hutao daniel-hutao added the refactor refactor label Nov 22, 2022

@steinliber steinliber left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can put LoadCofig in pluginengine, Then all main logic func can be starts with uppercase. I think export func which only used in module is not a good choice

Comment thread internal/pkg/configmanager/app.go Outdated
Comment thread internal/pkg/configmanager/rawconfig.go Outdated
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
@daniel-hutao

Copy link
Copy Markdown
Member Author

we can put LoadCofig in pluginengine, Then all main logic func can be starts with uppercase. I think export func which only used in module is not a good choice

I'll take a deeper think at this afternoon.

@steinliber steinliber merged commit 27b4023 into devstream-io:main Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants