Skip to content

perf: use map instead of slice.Contains #15

perf: use map instead of slice.Contains

perf: use map instead of slice.Contains #15

Workflow file for this run

name: push
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.5
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.55.2
skip-pkg-cache: true
skip-build-cache: true
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.5
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: go test -race -v ./...