Skip to content
golangciPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hard Fork of gofmt

Updates

  • 2026-08-20: Sync with go1.27.0
  • 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

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages