diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6905485..6184eab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,5 +34,13 @@ jobs: with: go-version: "1.23.0" + - name: Install staticcheck + uses: dominikh/staticcheck-action@v1 + with: + version: "latest" + - name: Style + run: test -z $(go fmt ./...) + + - name: Linting run: test -z $(go fmt ./...) \ No newline at end of file diff --git a/main.go b/main.go index 19d7366..a621713 100644 --- a/main.go +++ b/main.go @@ -96,3 +96,8 @@ func main() { log.Printf("Serving on port: %s\n", port) log.Fatal(srv.ListenAndServe()) } + +func unused() { + // this function does nothing + // and is called nowhere +}