Skip to content

Conversation

akoserwal
Copy link
Contributor

@akoserwal akoserwal commented Apr 26, 2024

Description (what this PR does / why we need it):

Convert to type based on the followed pattern:

  • bool: true/false
  • float64: has(.) parseFloat
  • int64: parseInt
  • string: default
  • ${key:"defaultValue"}

fix: #3198

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 26, 2024
@akoserwal
Copy link
Contributor Author

@@shenqidebaozi Please review

@shenqidebaozi
Copy link
Member

shenqidebaozi commented Apr 30, 2024

@akoserwal Okay, no problem. Let me find some more people to watch together @go-kratos/contributor

@akoserwal akoserwal force-pushed the fix-config-parsing branch 3 times, most recently from 48bfca4 to 2ad825d Compare May 6, 2024 09:23
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 6, 2024
@akoserwal akoserwal force-pushed the fix-config-parsing branch from 2ad825d to d2baffa Compare May 30, 2024 07:45
@akoserwal akoserwal force-pushed the fix-config-parsing branch from d2baffa to 0dd92a4 Compare May 30, 2024 07:48
@shenqidebaozi shenqidebaozi changed the title fix: parsing config input and convert to match the type feat: parsing config input and convert to match the type Jun 1, 2024
@dosubot dosubot bot added the LGTM label Jun 1, 2024
@shenqidebaozi shenqidebaozi merged commit 46362d1 into go-kratos:main Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with configuration file to render the values from environment variables
3 participants