Explore how generics can simplify REST implementation in Go by removing boilerplate code in this 37-minute conference talk from GoLab. Learn about RIP (REST in Peace), an approach that leverages generics to create a strong type system while abstracting away HTTP handler complexities. Discover how to create endpoints for REST resources with minimal code, automatically handling GET, POST, PUT, and DELETE operations for basic CRUD functionality. Dive into the implementation details to understand the code-saving potential of this technique, and see how to customize resource providers for more complex scenarios without dealing directly with HTTP specifics.
Overview
Syllabus
REST in peace: using generics to remove REST boilerplate - Tanguy Herrmann
Taught by
GoLab conference