aws / rolesanywhere-credential-helper

Apache License 2.0
126 stars 35 forks source link

Replace io/ioutil functions #25

Closed ohkinozomu closed 1 year ago

ohkinozomu commented 1 year ago

Description of changes:

This commit fixes the following warning by staticcheck

aws_signing_helper/serve.go:141:20: should use time.Until instead of t.Sub(time.Now()) (S1024)
aws_signing_helper/signer_test.go:15:2: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
cmd/aws_signing_helper/main.go:11:2: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.