---
title: "Discussion on \"(Golang)You've Been Calling It a Handler Wrong All Along\" | Hashnode"
description: "Discussion on \"(Golang)You've Been Calling It a Handler Wrong All Along\". When routing in go, we attach a normal function to a router and call it a handler, for example :\npackage main\n\nfunc home(w http.ResponseWriter, r *http.Request) {\n\t\n\t w.Write([]byte(\"Hello from Snippe"
url: "https://hashnode.com/posts/golang-you-ve-been-calling-it-a-handler-wrong-all-along/69d63ff4d072e6ec20a9c720"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [(Golang)You've Been Calling It a Handler Wrong All Along](https://areeshzafar.hashnode.dev/golang-you-ve-been-calling-it-a-handler-wrong-all-along?utm_source=hashnode&utm_medium=feed)

When routing in go, we attach a normal function to a router and call it a handler, for example : package main func home(w http.ResponseWriter, r \*http.Request) { w.Write(\[\]byte("Hello from Snippe

Apr 8 · 2 min read · areeshzafar.hashnode.dev  
Read the article

## Written by

[Areesh Zafar](https://hashnode.com/@areesh-zafar)

@areesh-zafar · Kolkata, India

  
[View profile](https://hashnode.com/@areesh-zafar)

Sharing thoughts on Go and Creative Development

Interested in Go and Creative web development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
