Skip to content

Add dot and dot-upper transforms - #129

Merged
dmarkham merged 1 commit into
masterfrom
add-dot-transform
Oct 3, 2026
Merged

dmarkham merged 1 commit into
masterfrom
add-dot-transform

Conversation

@dmarkham

@dmarkham dmarkham commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Based on #61 by @adenix, rebuilt on current master.

Adds two transforms using the same delimiter path as snake and kebab:

-transform MyTypeValue becomes
dot my.type.value
dot-upper MY.TYPE.VALUE

dot_upper is accepted as an alias, matching the other underscore forms. No new dependencies, no change to existing output.

  • stringer.go: two cases in the transform switch
  • testdata/transform_dot.go, testdata/transform_dot_upper.go: end-to-end tests
  • README.md: table rows

-transform=dot produces my.type.value and -transform=dot-upper produces
MY.TYPE.VALUE, using the same delimiter path as snake and kebab.
dot_upper is accepted as an alias like the other underscore forms.

Based on #61 by adenix.
@dmarkham
dmarkham merged commit 51677dc into master Oct 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant