Package gorilla/mux implements a request router and dispatcher for matching incoming requests to their respective handler.
Questions tagged [mux]
331 questions
-4
votes
3 answers
Omit struct field in JSON response
I have a struct with some fields as follows:
type Test struct {
ID int `json:"id"`
Active bool `json:"active"`
Object []obj.Object `json:"objects"`
}
Then some handler functions that encode Test objects to…

jupcan
- 436
- 3
- 7
- 17