Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: configmanager Package's Readability Enhancement #1246

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

daniel-hutao
Copy link
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>
Copy link
Contributor

@steinliber steinliber left a comment

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

internal/pkg/configmanager/app.go Outdated Show resolved Hide resolved
internal/pkg/configmanager/rawconfig.go Outdated Show resolved Hide resolved
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
@daniel-hutao
Copy link
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