Skip to content

miekg/gotmplfmt

Repository files navigation

gotmplfmt

Fmt Go HTML templates. There are no options. The indenting used is 1 tab - this allow your terminal's tab width setting to do its work.

Usage

  1. go build
  2. ./gotmplfmt < template.go.tmpl

Before

Before fmt

After

After fmt