Update go version, modules and remove ioutil

This commit is contained in:
Ricardo Katz 2021-08-06 11:18:17 -03:00
parent 6f0401fc73
commit d226d831bd
31 changed files with 576 additions and 288 deletions

View file

@ -17,7 +17,7 @@ limitations under the License.
package file
import (
"io/ioutil"
"os"
"testing"
)
@ -31,7 +31,7 @@ func TestSHA1(t *testing.T) {
}
for _, test := range tests {
f, err := ioutil.TempFile("", "sha-test")
f, err := os.CreateTemp("", "sha-test")
if err != nil {
t.Fatal(err)
}