Skip to content

Conversation

Rancbar
Copy link
Contributor

@Rancbar Rancbar commented Aug 4, 2025

Title:
Add AutoPrefix and PrefixSeparator support for improved nested field prefix handling

Description:

This PR introduces two new features to enhance prefix handling during environment variable parsing:

AutoPrefix (bool): Automatically applies the struct field key as the prefix when no explicit envPrefix is defined.

PrefixSeparator (string): Defines a custom separator in combining key for nested key lookups (e.g., _ results in FOO_TEST).

Copy link

codecov bot commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8917d78) to head (1381ff3).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #367   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          622       644   +22     
=========================================
+ Hits           622       644   +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant