Skip to content

Replace deprecated io/ioutil calls - #18

Closed
valerybugakov wants to merge 1 commit into
masterfrom
batch-changes/migrate-off-ioutil
Closed

valerybugakov wants to merge 1 commit into
masterfrom
batch-changes/migrate-off-ioutil

Conversation

@valerybugakov

Copy link
Copy Markdown

io/ioutil has been deprecated since Go 1.16. This replaces each call with its os or io equivalent.
ioutil.ReadDir is left as is: os.ReadDir returns fs.DirEntry instead of fs.FileInfo.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Scan Summary

Tool Critical High Medium Low Status
Go Static Analysis 0 0 1 0 ✅
Go Security Audit 0 18 5 0 ❌
Secrets Audit 0 16 0 0 ❌
Python Source Analyzer 0 0 0 0 ✅

Recommendation

Please review the findings from Code scanning alerts before approving this pull request. You can also configure the build rules or add suppressions to customize this bot 👍

Comment thread dnscrypt-proxy/common.go

func ReadTextFile(filename string) (string, error) {
bin, err := ioutil.ReadFile(filename)
bin, err := os.ReadFile(filename)
@valerybugakov
valerybugakov deleted the batch-changes/migrate-off-ioutil branch October 9, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants