awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
mvdan avatar

mvdan/gofumpt

0
View on GitHub↗
4,007 stars·125 forks·Go·BSD-3-Clause·12 viewspkg.go.dev/mvdan.cc/gofumpt↗

Gofumpt

gofumpt is a Go language tool and source code formatter. It functions as an opinionated code styler that applies a strict and consistent visual style to Go source files to ensure a standardized appearance across a codebase.

The tool enforces a more rigid and deterministic set of layout constraints than the standard Go toolchain. It is designed for Go project style enforcement to eliminate trivial diffs and stylistic inconsistencies.

The project supports Go source code formatting and continuous integration linting to automatically check and correct formatting during the build process.

Features

  • Source Code Formatters - Acts as a source code formatter that rewrites Go code to adhere to a standardized and strict style guide.
  • Go Formatting Tools - Enforces a rigid and deterministic set of formatting rules specifically for Go projects.
  • Opinionated Formatting Engines - Employs an opinionated formatting engine to strictly enforce a deterministic layout and line wrapping style.
  • Source Code Formatting - Automatically manages indentation and whitespace to ensure a consistent visual style across Go source files.
  • Code Print Formatters - Extends the standard Go formatter with stricter rules for whitespace and line breaks during the printing phase.
  • AST-Based Source Transformations - Implements source code modifications by manipulating the abstract syntax tree while preserving logical structure.
  • Continuous Integration Checks - Provides automated formatting checks that can be integrated into continuous integration pipelines to ensure commit quality.
  • Simplification Patterns - Applies predefined stylistic constraints to reduce structural complexity and ensure uniform code patterns.
  • Code Analysis and Quality - Strict code formatter.
  • Static Analysis Tools - Stricter, backwards-compatible Go formatter.

Star history

Star history chart for mvdan/gofumptStar history chart for mvdan/gofumpt

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does mvdan/gofumpt do?

gofumpt is a Go language tool and source code formatter. It functions as an opinionated code styler that applies a strict and consistent visual style to Go source files to ensure a standardized appearance across a codebase.

What are the main features of mvdan/gofumpt?

The main features of mvdan/gofumpt are: Source Code Formatters, Go Formatting Tools, Opinionated Formatting Engines, Source Code Formatting, Code Print Formatters, AST-Based Source Transformations, Continuous Integration Checks, Simplification Patterns.

Which projects share features with mvdan/gofumpt?

Projects with overlapping indexed features include: google/google-java-format — google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a… golang/tools — This project is a collection of official toolsets and server implementations designed for the parsing, formatting, and… rust-lang/rustfmt — rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source… google/yapf — YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete… analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It… ansible/ansible-lint — ansible-lint is a static code analysis tool and linter designed to identify syntax errors and best practice violations…

Projects sharing features with Gofumpt

These projects share indexed features with Gofumpt. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/google-java-formatgoogle avatar

    google/google-java-format

    6,145View on GitHub↗

    google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a standardized style guide, ensuring consistent layout and indentation across entire projects or individual files. The project functions as a build pipeline linting tool for continuous integration workflows and as an IDE formatting plugin to replace native editor formatting. It can be embedded as a formatting library within code generation software to ensure machine-written output remains human-readable. The tool provides capabilities for reorganizing source code indentation and

    Java
    View on GitHub↗6,145
  • golang/toolsgolang avatar

    golang/tools

    7,970View on GitHub↗

    This project is a collection of official toolsets and server implementations designed for the parsing, formatting, and semantic analysis of the Go programming language. It includes a language server that provides real-time code intelligence and automated editing capabilities to editors via the Language Server Protocol. The toolset provides a suite of utilities for source code formatting and static analysis. This includes automated standardization of code layout, import organization, and the generation of string representation methods for enumerated types. The project covers broad static anal

    Go
    View on GitHub↗7,970
  • rust-lang/rustfmtrust-lang avatar

    rust-lang/rustfmt

    6,747View on GitHub↗

    rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source files according to official style guidelines. It parses source code into a syntax tree, applies formatting rules to tree nodes, and pretty-prints the result back to text, with support for TOML-driven configuration that allows per-project style customization. The formatter is edition-aware, automatically selecting formatting rules based on the Rust edition specified in the project, and supports a style edition override that decouples formatting rules from the Rust edition used fo

    Rustcodeformatterformatterrust
    View on GitHub↗6,747
  • google/yapfgoogle avatar

    google/yapf

    13,978View on GitHub↗

    YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete syntax trees to ensure structural consistency and a uniform visual presentation across source files. The engine utilizes a penalty-based layout optimizer to determine the best line breaks by calculating numerical costs for different formatting choices. It employs a multi-process code processor to distribute the formatting of multiple files across several CPU cores. The tool covers source code reformatting through in-place file modifications, difference analysis, and the proce

    Python
    View on GitHub↗13,978
Compare all 30 related projects→