Skip to content
Now boarding New: Mobile & Desktop platform and an open-fare snippet depot — pay €1 to €100. See new lines Code WELCOME10 takes 10% off your first ticket · 14-day refund

Line KJ-110 Platform 3 · Backend & API Modules

Go API Depot

A production Go REST API template with Postgres, structured logging, OpenAPI docs and graceful shutdown.

Rated 5.0 out of 5 from 1 review 187 builders

LH Maintained by Lars Holm

  • Last updated October 2026
  • English
  • 1h 18m of walkthroughs
  • 62 files

What you get

5 items in the box

Every bullet below is in the download, working, the moment your payment clears.

  • Standard-library Go API with sqlc and PostgreSQL
  • Auth middleware, rate limiting and request IDs
  • Generated OpenAPI 3.1 documentation
  • Graceful shutdown, health checks and structured logging
  • Integration tests against a real Postgres container

What's in the box

4 parts · 62 files · 1h 18m of walkthroughs

11 files with a 13m walkthrough video. This part is documented in the architecture guide, with notes on every decision and how to change it for your own project.

The full file tree and the walkthroughs are in your download, available straight after checkout.

17 files with a 22m walkthrough video. This part is documented in the architecture guide, with notes on every decision and how to change it for your own project.

The full file tree and the walkthroughs are in your download, available straight after checkout.

14 files with a 19m walkthrough video. This part is documented in the architecture guide, with notes on every decision and how to change it for your own project.

The full file tree and the walkthroughs are in your download, available straight after checkout.

20 files with a 24m walkthrough video. This part is documented in the architecture guide, with notes on every decision and how to change it for your own project.

The full file tree and the walkthroughs are in your download, available straight after checkout.

4 parts · 62 files

1h 18m total length

You will need

Short list, and deliberately so. If you meet these you can start today.

  • Go 1.22 or newer
  • Docker for the test database

About this product

Go API Depot is a standard-library-first REST API template: net/http routing, sqlc-generated queries against PostgreSQL, structured logging with slog, and configuration from the environment. There is no framework to learn and nothing that will be abandoned in two years.

The template includes request validation, consistent error responses, API-key and JWT authentication middleware, rate limiting, request IDs, health and readiness endpoints, graceful shutdown and an OpenAPI 3.1 document generated from the handlers. Integration tests run against a real Postgres container.

Lars has annotated every security-relevant decision, from timing-safe token comparison to the limits on request body size.

Frequently asked questions

Still unsure about something? Write to our contact page and a human answers, usually the same working day.

Since Go 1.22 the standard router handles methods and path parameters, so a framework adds dependencies without adding much.

Checkout is handled on our provider's secure payment page. The moment your payment clears we email your personal access link and access code to the address you used at checkout, and the same link appears in your account library. There is nothing to install and nothing to wait for.

Email within 14 days of your purchase, quote your order number, and we refund the full amount to your original payment method. No form to fill in and no questions about how much of the product you watched.

What builders say

Reviews are written by people who bought this product. We publish the critical ones too.

5.0

Rated 5.0 out of 5

Product rating · 1 review

Rating distribution

  • 5 stars 100%
  • 4 stars 0%
  • 3 stars 0%
  • 2 stars 0%
  • 1 star 0%
  • TW

    Thomas Weiss

    Go developer

    Jul 2026
    Rated 5.0 out of 5

    No framework, no regrets

    Standard library routing and sqlc is exactly how I like to write Go. The security annotations taught me a couple of things about request limits.

Your maker

LH

Lars Holm

Go and Rust engineer with a security habit

  • 2,427 builders aboard
  • 11 products published
  • 5.0 maker rating
  • Go
  • Rust
  • PostgreSQL
  • Application security
  • Linux hardening

Lars started out in penetration testing and moved into backend engineering, so he writes Go services the way an attacker would read them. He maintains the Go API and Postgres tenancy modules and the whole Security line. His audit kits explain the reason behind every check, because a checklist nobody understands gets skipped.

€69 EUR

One-time payment · lifetime access

Timetable updates

New lines, first. One email when something departs.

Release notes for new products and major updates to the ones you own, plus launch fares for subscribers. No digest padding, unsubscribe in one click.

By subscribing you agree to our Privacy Policy.