No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fernandez Ludovic e7be49a5ab
docs: fix typo
2025-12-16 00:45:48 +01:00
.github/workflows feat: new API 2025-12-16 00:11:08 +01:00
internal chore: test files CRLF 2025-12-16 00:24:13 +01:00
go.mod feat: update gofmt code from go1.26.0-pre-rc1 2025-12-16 00:10:35 +01:00
go.sum feat: update gofmt code from go1.26.0-pre-rc1 2025-12-16 00:10:35 +01:00
gofmt.go feat: new API 2025-12-16 00:11:08 +01:00
Makefile feat: new API 2025-12-16 00:11:08 +01:00
readme.md docs: fix typo 2025-12-16 00:45:48 +01:00

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).