This replaces most deprecated functions with modern equivalents, now that we're using Go 1.16+:
Replace ioutil.Foo with respective functions in io and os (this is the vast majority of the changed lines).
Replace golang.org/x/crypto/ssh/terminal package with golang.org/x/term.
Avoid use of ResponseRecorder.HeaderMap and .Header()
Use signal.NotifyContext now that it exists, instead of rolling our own.
Look at the commits individually if you want to see these separated out.
For reference, I found these usages with simple search, as well as the following staticcheck command (note that there are still some left that I didn't think worth updating):
This replaces most deprecated functions with modern equivalents, now that we're using Go 1.16+:
ioutil.Foo
with respective functions inio
andos
(this is the vast majority of the changed lines).golang.org/x/crypto/ssh/terminal
package withgolang.org/x/term
.ResponseRecorder.HeaderMap
and.Header()
signal.NotifyContext
now that it exists, instead of rolling our own.Look at the commits individually if you want to see these separated out.
For reference, I found these usages with simple search, as well as the following staticcheck command (note that there are still some left that I didn't think worth updating):