Skip to content

golangci/gofmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hard Fork of gofmt

Updates

  • 2025-12-14: Sync with go1.26.0-pre-rc1
    • except (because it uses go1.26 specific elements):
      • internal/testenv/testenv_unix.go
      • internal/platform/zosarch.go
  • 2025-07-04: Sync with go1.24.4
  • 2025-04-14: Sync with go1.23.8
  • 2024-08-17: Sync with go1.22.6
  • 2023-02-28: Sync with go1.21.7
  • 2023-10-04: Sync with go1.20.8
  • 2023-10-04: Sync with go1.19.13
  • 2022-08-31: Sync with go1.18.5

Notes

Packages

Details

go/src/cmd/gofmt/internal.go and go/src/go/format/internal.go are identical. The parserMode is a global variable for gofmt and a constant for go/format.

The constants (tabWidth, printerMode, printerNormalizeNumbers) are duplicated inside:

Theoretically, only the following files are required:

  • gofmt.go (only the constants (tabWidth, printerMode, printerNormalizeNumbers))
  • internal.go
  • LICENSE
  • rewrite.go
  • simplify.go

But it's easier to synchronize everything to follow changes. But the isolation of internal packages from Go can be complex, so maybe, at some point, we will reduce the number of files and so remove the internal/internal directory (and the test files).

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5