Skip to content

chore: goimports -w . && go fix ./... (go1.18) - #7

Open
coolaj86 wants to merge 1 commit into
libdns:masterfrom
coolaj86:chore/goimports
Open

chore: goimports -w . && go fix ./... (go1.18)#7
coolaj86 wants to merge 1 commit into
libdns:masterfrom
coolaj86:chore/goimports

Conversation

@coolaj86

@coolaj86 coolaj86 commented Aug 25, 2026

Copy link
Copy Markdown

I was trying to make a PR but it kept changing every single line, so I'm making this first to normalize line endings and formatting according to the standard Go tooling.

If there's a setting that I should apply and commit to the local git config or some other config to make this match your preferred style, I would be happy to do that instead, however, the documentation I was reading said that go fmt doesn't support this: golang/go#16355

And supposedly Windows has fixed the related issue upstream: golang/go#16355 (comment)

I don't have a windows computer handy to easily test this, but I think this is the standard solution.

gofmt/goimports always normalize to LF (Go issue #16355). Add
.gitattributes with text=auto so Git stores LF in the repo to match,
preventing spurious diffs for future contributors.
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