now:
noctx is linting my http.Get call and says
"In Go 1.13 and later, use http.NewRequestWithContext function instead of using http.NewRequest function."
But Get is calling NewRequestWithContext() at the end?
Same if I use NewRequest:
" should rewrite http.NewRequestWithContext " - can somebody explain me why this should be bad? NewRequest is just a wrapper for NewRequestWithContext
https://github.com/sonatard/noctx
nice
the description of this repo is weird "noctx finds sending..." finds sending?! what kind of broken english is that?
Обсуждают сегодня