REST api using GO and Gorilla Mux

Swanand Keskar
Mar 9, 2018 · 1 min read

following is the simple CRUD example written in Golang using Gorilla Mux for routing

Install mux

$ go get github.com/gorilla/mux

Steps:

Define the structure for User

Define the handler functions for each route

Start listening and serving on port specified

The github link for the above app :


Swanand Keskar

Written by

Solutionizer | Fullstack Dev | Google Certified #Android Developer swanandkeskar.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade