Skip to content

Replace deprecated ioutil with os and io#115

Merged
josephburnett merged 1 commit intojosephburnett:masterfrom
alexandear-org:refactor/replace-ioutil-with-os
Feb 21, 2026
Merged

Replace deprecated ioutil with os and io#115
josephburnett merged 1 commit intojosephburnett:masterfrom
alexandear-org:refactor/replace-ioutil-with-os

Conversation

@alexandear
Copy link
Copy Markdown
Contributor

@alexandear alexandear commented Feb 5, 2026

This PR replaces function usages from io/ioutil with the same functions from io and os.

Only v2 is affected.

Motivation

io/ioutil is deprecated:

Deprecated: 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.

@alexandear alexandear force-pushed the refactor/replace-ioutil-with-os branch from 066f286 to b73001b Compare February 5, 2026 16:18
Copy link
Copy Markdown
Owner

@josephburnett josephburnett left a comment

Choose a reason for hiding this comment

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

LGTM. Straightforward replacement of deprecated io/ioutil with os and io equivalents. CI passes.

@josephburnett josephburnett merged commit 20ca86c into josephburnett:master Feb 21, 2026
1 check passed
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.

2 participants