https://github.com/miekg/gotmplfmt
Fmt Go HTML templates
https://github.com/miekg/gotmplfmt
fmt formatter golang templates
Last synced: 12 months ago
JSON representation
Fmt Go HTML templates
- Host: GitHub
- URL: https://github.com/miekg/gotmplfmt
- Owner: miekg
- License: gpl-3.0
- Created: 2025-02-14T14:45:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-13T14:46:13.000Z (about 1 year ago)
- Last Synced: 2025-06-13T15:47:16.851Z (about 1 year ago)
- Topics: fmt, formatter, golang, templates
- Language: Go
- Homepage:
- Size: 482 KB
- Stars: 25
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

# After
