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

Suggest to upgrade to next version v1.2.x #20

Closed
wants to merge 78 commits into from

Conversation

chinmobi
Copy link

About the pull request, I've completed the following major works:

  1. Refactor the original config.go to three parts: base.go, config.go, and env.go, to achieve single-responsibility principle for each part.

  2. As the lookup() method is the key method to retrieve value by key, I update it for a bit performance consideration.

  3. Refactor the original config.New() method to pure New() method and the NewWithListener() method.

  4. (IMPORTANT) Add assign functions (and methods) to retrieve whole struct fields' value and/or whole slice elements' value

  5. All of the changes have passed the old tests.

  6. The added assigned utilities have passed the additional tests.

@miladrahimi
Copy link
Member

There is very nice features. Could you please separate them into separate branches (pull-requests) and make it compatible with the version 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants