Skip to content

fix input

fix input #10

Workflow file for this run

name: Gofmt Check
on: [push, pull_request]
jobs:
gofmt-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"
- name: Run gofmt
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Unformatted Go files found:"
echo "$unformatted"
exit 1
fi