Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 665 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 665 Bytes

apigen

This repository contains a sample project how to utilize go:generate in order to overcome the burden of writing boilerplate code. It contains a REST API and a couple of middlewares. The tool utilizing go:generate automatically creates code for the following functionality:

  • Logging
  • Instrumentation
  • Activity Recording
  • API Documentation

This was part of the GopherCon Russia 2019 talk: go generate: One file to rule them all.


You can run the code generation with:

go generate ./...