go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.62k stars 868 forks source link

Remove deprecated ioutil functions #597

Closed alexandear closed 1 year ago

alexandear commented 1 year ago

This PR replaces deprecated functions in Go 1.16 ioutil.ReadFile and ioutil.ReadAll with os.ReadFile and io.ReadAll.

codecov[bot] commented 1 year ago

Codecov Report

Base: 44.99% // Head: 44.99% // No change to project coverage :thumbsup:

Coverage data is based on head (2cc6dc2) compared to base (537c005). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #597 +/- ## ======================================= Coverage 44.99% 44.99% ======================================= Files 7 7 Lines 1589 1589 ======================================= Hits 715 715 Misses 818 818 Partials 56 56 ``` | [Impacted Files](https://codecov.io/gh/go-telegram-bot-api/telegram-bot-api/pull/597?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-telegram-bot-api) | Coverage Δ | | |---|---|---| | [bot.go](https://codecov.io/gh/go-telegram-bot-api/telegram-bot-api/pull/597/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-telegram-bot-api#diff-Ym90Lmdv) | `36.67% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-telegram-bot-api). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-telegram-bot-api)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.