So I have been searching and can't seem to find how to get the backend struct for a wrapped struct in go.
This is the use case: I am using traffic to manage my web app and it uses it's own wrapped version of the http.Request
as well as several others. the declaration looks like this:
type Request struct {
*http.Request
}
I am trying to incorporate go-guardian and I need to send an http.Request to this function:
Authenticate(r *http.Request) (Info, error)
The question is how do I get the *http.Request
that the traffic.Request
was made out of?
I seem to remember seeing a way to do this in a tutorial somewhere but I haven't been able to find it (the problem is I'm not sure I'm using the right term for a wrapped struct).
Any feedback would be graetly appreciated - thank you.