DEV Community

Tymoteusz Blazejczyk
Tymoteusz Blazejczyk

Posted on

Go Formatter

Tired of using boring #Go fmt package?

Try the latest Go Formatter package today. It implements replacement fields surrounded by curly braces {} format strings similar to Python string format.

Features:

  • Implements replacement fields surrounded by curly braces {} format strings
  • Format string by providing arguments without using placeholders or format verbs %
  • Format string using automatic placeholder {p}
  • Format string using positional placeholders {pN}
  • Format string using named placeholders {name}
  • Format string using object placeholders {.Field}, {p.Field} and {pN.Field} where Field is an exported struct field or method
  • Use custom placeholder string. Default is p
  • Use custom replacement delimiters. Default are { and }
  • Use custom replacement functions with transformation using pipeline |
  • Under the hood it uses the standard text/template package

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay