How I write offline API tests in Go

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • SonarLint - Clean code begins in your IDE with SonarLint
  • go-vcr

    Record and replay your HTTP interactions for fast, deterministic and accurate tests

    For example I see go-vcr (note: not mine), but haven't taken time yet to evaluate it.

  • requests

    HTTP requests for Gophers (by carlmjohnson)

    Yeah, I made a simple response recorder inspired by VCR. VCR is a little more complex than I need but the basic approach is great.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts