Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move from io/ioutil to io and os packages #1633

Merged
merged 1 commit into from
Nov 16, 2021
Merged

refactor: move from io/ioutil to io and os packages #1633

merged 1 commit into from
Nov 16, 2021

Conversation

Juneezee
Copy link
Contributor

Description (what this PR does / why we need it):

The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for reviewer:

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #1633 (d1b581e) into main (7a52468) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1633      +/-   ##
==========================================
+ Coverage   81.26%   81.31%   +0.05%     
==========================================
  Files          78       78              
  Lines        3426     3426              
==========================================
+ Hits         2784     2786       +2     
+ Misses        442      440       -2     
  Partials      200      200              
Impacted Files Coverage Δ
config/file/file.go 61.90% <100.00%> (ø)
transport/http/client.go 79.00% <100.00%> (ø)
transport/http/codec.go 63.88% <100.00%> (ø)
internal/context/context.go 100.00% <0.00%> (+2.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a52468...d1b581e. Read the comment docs.

Copy link
Member

@tonybase tonybase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tonybase tonybase merged commit 77b1628 into go-kratos:main Nov 16, 2021
kiripeng214 added a commit to kiripeng214/kratos that referenced this pull request Nov 16, 2021
refactor: move from io/ioutil to io and os packages (go-kratos#1633)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants