This is a bit a silly question but I wanted to ask that can I use any name instead of r and w in the w http.ResponseWriter, r *http.Request or should it be r and w always?
Thanks
This is a bit a silly question but I wanted to ask that can I use any name instead of r and w in the w http.ResponseWriter, r *http.Request or should it be r and w always?
Thanks
It doesn't matter the name of the parameter, you just need to obey the function signature
func (firstParameter http.ResponseWriter, secondParameter http.ResponseWriter)
I believe what you asking is, is it idomatic to use r and w. I don’t think it is. So long as you give the parameters reasonable names (i.e. they don’t hinder readability) you are fine.