gorilla Questions

4

Solved

Using code below, when I access /test2 it responds with 404 - not found. /test1 works correctly. Why is that? Is nesting not allowed despite the fact that routers implement http.Handler interface? ...
Lafond asked 3/8, 2014 at 18:26

2

Solved

The problem I'm seeing is that I'm trying to use the http.FileServer with the Gorilla mux Router.Handle function. This doesn't work (the image returns a 404).. myRouter := mux.NewRouter() myRoute...
Concomitance asked 20/1, 2014 at 12:50

1

Solved

I'm using Go (Golang) 1.4.2 with Gorilla WebSockets behind an nginx 1.4.6 reverse proxy. My WebSockets are disconnecting after about a minute of having the page open. Same behavior occurs on Chrome...
Phlogistic asked 3/3, 2015 at 9:34

1

Solved

I am trying to pass my database object along to my handlers, instead of having a global object. But I don't know if this is possible, I'm using Gorilla Mux package, and I can see that it takes a cl...
Aboutship asked 6/10, 2014 at 7:53

1

Solved

I am using Gorilla mux and the net/http package to create some routes as follows package routes //some imports //some stuff func AddQuestionRoutes(r *mux.Router) { s := r.PathPrefix("/question...
Abroms asked 16/8, 2014 at 5:10

2

Solved

I am using gorilla/mux package in golang, but there are some problems. The first is I have no permissions to use port 80 on my application becuase I cannot run the application from sudo as the $GOP...
Roemer asked 28/6, 2014 at 0:40

1

Solved

I want to use Redis for session management. But I can't figure out what the advantage is of using Redis as a custom back-end for Gorilla sessions package over using it directly? link to the Gorill...
Bughouse asked 10/4, 2014 at 21:14

2

Solved

I get sessions, coming from PHP I used to <?php session_start(); $_SESSION["key"] = "val"; echo $_SESSION["key"]; ?> Set one or more keys and their values serverside and be able to retriev...
Pipestone asked 6/12, 2013 at 3:21

1

Solved

In a go program, I want to run two web servers at the same time, obviously they will be serving on two different ports (and ip addresses if necessary), the problem is with the call to http.handle, ...
Quent asked 17/1, 2014 at 10:12

1

Solved

I'm playing around with the gorilla.mux library for Go. I have the following configuration, but I cant figure out the URL to reach the HelloWorldXml method. func main() { router := mux.NewRouter(...
Craal asked 10/9, 2013 at 13:38

© 2022 - 2024 — McMap. All rights reserved.