Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
go-version: "~1.21"

- name: Check format
run: bash ./scripts/check_fmt.sh
run: ./scripts/check_fmt.sh
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GOARCH := $(shell go env GOARCH)
PWD=$(shell pwd)

fmt: **/*.go
fmt: $(shell find . -type f -name '*.go')
go run mvdan.cc/[email protected] -l -w .

develop:
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

list="$(go run mvdan.cc/[email protected] -l .)"
if [[ -n $list ]]; then
echo -e "error: The following files have changes:\n\n${list}\n\nDiff:\n\n"
echo -n -e "error: The following files have changes:\n\n${list}\n\nDiff:\n\n"
go run mvdan.cc/[email protected] -d .
exit 1
fi