Skip to content

add OrElse method (#17) #41

add OrElse method (#17)

add OrElse method (#17) #41

Workflow file for this run

name: staticcheck
env:
GO_VERSION: "1.20"
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
staticcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...