RSSAmplifier

Bart Fokker · Jul 7, 2017

Clean http handlers in Go!

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Introduction For this blog post we are going to take a look at the http.HandlerFunc type and how we can improve it to make more elegant and clean handlers. Following the idioms of Go and staying compatible with the standard library. Handlers In Go A Handler is a type which responds to an HTTP request. type Handler interface { ServeHTTP ( http . ResponseWriter , * http . Request ) } Any struct…

Read on bartfokker.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.