Home

Awesome

gowarcserver

Test Release

A tool to index and serve contents of WARC files.

Development

Requirements

go version 1.19 or newer

Build

go build

Test

go test ./...

Test TIKV

Download tiup by following instructions at https://github.com/pingcap/tiup.

# Start TiKV
tiup playground --mode=tikv-slim --without-monitor

# Run test including TiKV tests
go test ./... -tags tikv

Lint

The GitHub Actions test workflow uses golangci-lint for linting.

Install the linter locally by following the steps described in golangci-lint's local installation guide.

Note that on linux the guide expects you to have $GOPATH/bin included in your PATH variable.

golangci-lint run -E "bodyclose" -E "dogsled" -E "durationcheck" -E "errorlint" -E "forcetypeassert" -E "noctx" -E "exhaustive" -E "exportloopref" --timeout 3m0s