Skip to content

add OrElse method

add OrElse method #40

Workflow file for this run

name: mod-verify
env:
GO_VERSION: "1.20"
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
mod-verify:
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: Verify dependencies
run: go mod verify