Skip to content

Commit dbaf293

Browse files
committed
add a go fmt test.
1 parent daab0fd commit dbaf293

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/basictests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
go-version: ${{ matrix.go-version }}
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20+
- name: Check formatting
21+
run: |
22+
# Check formatting of all Go files in the project
23+
if [ "$(gofmt -s -l $(find . -name "*.go" -type f) | wc -l)" -gt 0 ]; then
24+
echo "The following files are not formatted with go fmt:"
25+
gofmt -s -l $(find . -name "*.go" -type f)
26+
exit 1
27+
fi
2028
- name: Test
2129
run: |
2230
go build -tags appengine

smat.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ type actionRecord struct {
7878
PairSnapshots []string // base64-encoded MarshalBinary of each pair's Bitmap
7979
}
8080

81-
var ()
82-
8381
type smatPair struct {
8482
bm *Bitmap
8583
bs *bitset.BitSet

0 commit comments

Comments
 (0)