Package gorilla/mux implements a request router and dispatcher for matching incoming requests to their respective handler.
Questions tagged [mux]
331 questions
0
votes
2 answers
Verilog: Select one of two instances as the Output
I have created two different Verilog Modules (shiftByImm and immShifter). What I want to do is to select only the output of one of the two as the output of this little multiplexer module I am creating.
module superShifter(input [0:31] in, input…

jean28
- 102
- 1
- 10
0
votes
2 answers
VHDL MUX select with constant
I have a constant defined in my VHDL package.
constant USE_OSD : integer := 0;
And this is something that I change prior to synthesis in my package. I would like to use this constant as my MUX select line in my VHDL code. How can I do this?
for…

Rudy01
- 1,027
- 5
- 18
- 32
0
votes
2 answers
VHDL ERROR:Pack:2811 - Directed packing was unable to obey the user design
I am working on a project in VHDL where I need to take a 4 bit input from switches, and shift it right or left a certain number of bits depending on values of other switches a button that switches between right/ and left shift. However, when I try…

user3000964
- 1
- 1
0
votes
1 answer
Parallel data to serial in C/C++ : Implementing a multiplex
I began working on the implementation of a basic parallel to serial data converter (MUX) in C or C++. Basically, this program takes data from some files and shows them in serial in a single file.
I started with this, I searched on the internet and…

Ita
- 303
- 5
- 17
0
votes
1 answer
How to invoke a Gurilla Mux handler programmatically?
I'm trying to invoke a Gurilla Mux handler programmatically in another handler function. Simply calling that handler function won't work, because it uses mux.Vars(). What I have at hand is a URL. Therefore, I'm looking for a way to invoke that…

Derek Chiang
- 3,330
- 6
- 27
- 34
0
votes
2 answers
VHDL prog to implement 8to1 mux using 4to1 (structural modelling)
I am a student and have just started learning vhdl. So I need someone to point me in right direction. This is what i have done so far:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY MUX81 IS
PORT(
A : IN STD_LOGIC_VECTOR(7 DOWNTO 0);
S : IN…

user2718338
- 1
- 1
- 1
- 1
0
votes
1 answer
mp4 muxing problems on dm365 board
I happen to be stuck with strange TI codec issues while encoding video. To cut story short - the encoded data which is generated by TI mpeg4 codecs are not 'understood' by nothing else, but VLC and media classic player.
After really long googling…

Ulterior
- 2,786
- 3
- 30
- 58
0
votes
1 answer
Error "ImportError: no module named mux" in Python
I installed a module one month ago. At that time, I could import the module successfully.
Now, when I import this module, there is an ImportError,
>>> import anuga
Traceback (most recent call last):
File "", line 1, in
File…
0
votes
1 answer
Get TS packets into buffer from libavformat
I would like to capture video, compress it and mux it as an mpeg2 ts. All of this is quite simple with the ffmpeg libraries, but what I would like to do, instead of writing it to a file, is capture the ts packets in a buffer and using this stream in…

Nioreh
- 253
- 3
- 14
-1
votes
1 answer
What is the correct solution to pass 2 objects to the handlers
Hi
there is a need to pass a json object to check authentication in each request
for this purpose i am using gorilla package
func middlewareFirstAuthCheck(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r…

codices
- 49
- 7
-1
votes
1 answer
Trouble with using gorilla/mux package in mac
I am trying to learn how to build a webserver using go and mux. I am importing mux to the main.go file as import github.com/gorilla/mux. However, when I am trying to run the code. I get the following error
no required module provides package…

Michio Kaku
- 49
- 1
- 6
-1
votes
1 answer
Go r.PostForm is empty
I tried to send form data and file to server but from the server the form value is empty , but i receive file only
SERVER
func CreatePost(w http.ResponseWriter, r *http.Request) {
createdAt := time.Now().String()
r.ParseForm()
data :=…

user9116815
- 23
- 1
- 10
-1
votes
1 answer
Error in compiling of 2:1 MUX with fault handling using individual components
I am implementing a 2:1 MUX using AND, OR, NOT, etc with fault handling but there is a problem in the code, I haven't done this complex code earlier. I wanted to make a module through which I can see the change in output when I inject a fault to any…

Ashking007
- 39
- 4
-1
votes
2 answers
How cast type when the original arg is a pointer
So I have this:
v, ok := muxctx.Get(req, "req-body-map").(map[string]interface{})
the problem is that:
muxctx.Get(req, "req-body-map")
returns a pointer. I tried dereferencing the pointer like so:
(*(muxctx.Get(req, "req-body-map"))
but I get…
user12211419
-1
votes
1 answer
How do I handle optional query parameters for a Go using Mux properly?
I'm making an API server using GoLang and I am using Mux as the HTTP router. I have one endpoint in my app, /tasks. When I hit that endpoint, I get back an array of results, which is as expected. Now, I want to build upon that and add an optional…

rakeshdas
- 2,363
- 5
- 20
- 28