Suggest a tool

Pact Go

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What Pact Go is

Pact Go is the Go implementation of Pact, a consumer-driven contract testing tool for HTTP and event-driven systems. Its consumer package starts a mock provider during unit tests and records the expected interactions in a pact file. Its provider package verifies a running API against one or more pact files. Version 2.x supports Pact specification versions 2, 3 and 4. It integrates with Pact Broker and PactFlow. The library calls C shared libraries compiled from Rust, so cgo must be enabled. A pact-go CLI downloads and installs those libraries. Supported platforms are macOS and Linux on x86_64 and arm64, plus Windows on x86_64.

Written from the project's README, read .

Category
Contract testing
License
MIT
Language
Go
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars9551
Forks1111
Open issues and PRs561
Contributors631
Commits in the last 90 days391
Last commit2026-09-211
Last releasev2.8.0, 2026-09-161
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed contract testing tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Pact Go's, with its source.

Comparisons

How to install

go get github.com/pact-foundation/pact-go/v2
From README, read .

Questions

Is Pact Go open source?

Yes. Pact Go is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is Pact Go maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-21, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does Pact Go have?

955 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is Pact Go written in?

The repository's primary language, as reported by the GitHub API, is Go.

How do I install Pact Go?

The README gives this command: go get github.com/pact-foundation/pact-go/v2

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read