<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>REST API on The Blog of Boban Acimovic</title><link>https://acim.net/tags/rest-api/</link><description>Recent content in REST API on The Blog of Boban Acimovic</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>The Blog of Boban Acimovic &amp;copy; 2026</copyright><lastBuildDate>Sun, 19 Dec 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://acim.net/tags/rest-api/index.xml" rel="self" type="application/rss+xml"/><item><title>Custom Go HTTP handlers using generics</title><link>https://acim.net/blog/custom-generic-go-http-handlers/</link><pubDate>Sun, 19 Dec 2021 00:00:00 +0000</pubDate><guid>https://acim.net/blog/custom-generic-go-http-handlers/</guid><description>&lt;p&gt;Few days ago Go 1.18beta1 was released and with it the first official generics support. I was embarrassed with standard Go&amp;rsquo;s HTTP handler functions for quite a while. If you are not familiar with Go, you probably wonder why, but if you are familiar, I believe you know. For example, implementing a RESTful API using idiomatic Go requires lot of code repetition in order to JSON decode request bodies and JSON encode response bodies. This problem was possible to solve in some way but never in such elegant way like using generics.&lt;/p&gt;</description></item></channel></rss>