These are chat archives for gin-gonic/gin

22nd
Aug 2016
Ousmane Traore
@otraore
Aug 22 2016 03:50
Use go-spew
and do
spew.Dump(c.Request)
c in this case being the *gin.Context
Is this for debuging purposes or do you just want to log the requests?
If it’s for gneral purpose logging requests you can use the net/http/httputil package which has a DumpRequest method
Thomas Boerger
@tboerger
Aug 22 2016 05:25
Yeah was for debugging, thanks