Skip to content

Commit 5bfccbc

Browse files
authored
feat: add goimports formatter (#52)
1 parent f8c86a7 commit 5bfccbc

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- [ ] [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt)
2323
- [x] [gofmt](https://pkg.go.dev/cmd/gofmt)
2424
- [x] [gofumpt](https://pkg.go.dev/mvdan.cc/gofumpt)
25+
- [ ] [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
2526
- [x] [golines](https://pkg.go.dev/github.com/segmentio/golines)
2627
- [ ] [google-java-format](https://github.com/google/google-java-format)
2728
- [ ] [isort](https://github.com/PyCQA/isort)

lua/guard-collection/formatter.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,9 @@ M.jq = {
322322
stdin = true,
323323
}
324324

325+
M.goimports = {
326+
cmd = 'goimports',
327+
stdin = true,
328+
}
329+
325330
return M

0 commit comments

Comments
 (0)