Top "Gorilla" questions

Gorilla is a web toolkit for the Go programming language.

How to add Authorization Header to Angular http request?

This is my first post. I've just started learning Go and Angular and I'm attempting to connect the angular app …

angular go gorilla
Making golang Gorilla CORS handler work

I have fairly simple setup here as described in the code below. But I am not able to get the …

go cors gorilla servemux
Gorilla mux optional query values

I've been working on a Go project where gorilla/mux is used as the router. I need to be able …

go gorilla mux
Gorilla mux custom middleware

I am using gorilla mux for manage routing. What I am missing is to integrate a middleware between every request. …

go gorilla
How do I pass arguments to my handler

I am trying to pass my database object along to my handlers, instead of having a global object. But I …

go gorilla
global recover handler for golang http panic

I want to create global err handler to send it by email. package main import ( "github.com/gorilla/mux" "log" "…

go gorilla
Golang Gorilla mux with http.FileServer returning 404

The problem I'm seeing is that I'm trying to use the http.FileServer with the Gorilla mux Router.Handle function. …

go gorilla
mux.Vars not working

I'm running on HTTPS (port 10443) and use subroutes: mainRoute := mux.NewRouter() mainRoute.StrictSlash(true) mainRoute.Handle("/", http.RedirectHandler("/static/", 302)) mainRoute.…

go gorilla
Unit testing for functions that use gorilla/mux URL parameters

Here's what I'm trying to do : main.go package main import ( "fmt" "net/http" "github.com/gorilla/mux" ) func main() { …

unit-testing go gorilla testify
Go and Gorilla Mux NotFoundHandler not working

I just can't get this NotFoundHandler to work. I'd like to serve a static file on every get request, given …

go mux gorilla