Categorygithub.com/horiondreher/go-web-api-boilerplate
module
0.0.0-20250128021655-57cfda0725a5
Repository: https://github.com/horiondreher/go-web-api-boilerplate.git
Documentation: pkg.go.dev

# README

Go Web API Boilerplate

Just writing some golang with things that I like to see in a Web API

Features

  • Hexagonal Architecture (kinda overengineering but ok. Also, just wrote like this to see how it goes)
  • Simple routing with chi
  • Centralized encoding and decoding
  • Centralized error handling
  • Versioned HTTP Handler
  • SQL type safety with SQLC
  • Migrations with golang migrate
  • PASETO tokens instead of JWT
  • Access and Refresh Tokens
  • Tests that uses Testcontainers instead of mocks
  • Testing scripts that uses cURL and jq (f* Postman)

Required dependencies

  • jq
  • golang-migrate
  • docker
  • sqlc

# Packages

No description provided by the author