Go: Gorilla Mux how to get URL params

iOSTom
3 min readNov 5, 2018

I have been working on creating a web application with Go. I am currently making rest calls to multiple APIs that retrieve information. Once I get the data I extract, transform and load the data into a repository. I ran into a problem when I needed to pull out the path from the URL and decided to try gorilla mux. In this guide I will explain:

  1. Gorilla Mux
  2. URL params
  3. Passing data to template

What is Gorilla Mux?

--

--

iOSTom

iOS Developer, Go, Java, C#, Blockchain enthusiast, Data junkie