mirror of
https://github.com/luzifer/vim.git
synced 2024-09-18 18:42:55 +00:00
Use a wrapper for goimports and gofmt
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
30bdd64e93
commit
d801ac8b9d
10
bin/gofmtimport
Executable file
10
bin/gofmtimport
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
[ ${DEBUG:-0} -eq 1 ] && exec 2>/tmp/gofmtimport.dbg
|
||||
|
||||
goimports \
|
||||
-srcdir "$2" \
|
||||
-local "${GOIMPORT_LOCAL:-}" \
|
||||
-w "$2"
|
||||
gofmt -s -w "$2"
|
Loading…
Reference in New Issue
Block a user