Skip to content

feat: parse map[string][]string with key/value separators (#398) - #453

Open
SkipGip wants to merge 1 commit into
caarlos0:mainfrom
SkipGip:cursor/map-string-slice-4141
Open

SkipGip wants to merge 1 commit into
caarlos0:mainfrom
SkipGip:cursor/map-string-slice-4141

Conversation

@SkipGip

@SkipGip SkipGip commented Oct 27, 2026

Copy link
Copy Markdown

Summary

Test plan

  • go test ./...
  • go test -race ./...
  • Table-driven cases for multi-value keys and custom separators

Closes #398

Related: volunteering on #407

Accept map values that are slices using the existing envSeparator and
envKeyValSeparator tags. Duplicate keys append an element instead of
replacing the slice. A FuncMap parser registered for the slice type
keeps the previous last-value-wins behavior.

Co-authored-by: SkinGap <SkipGip@users.noreply.github.com>
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.

Native support for map[string][]string?

2 participants