syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
392 stars 39 forks source link

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

Closed Juneezee closed 1 year ago

Juneezee commented 1 year ago

The io/ioutil package has been deprecated in Go 1.16 (See https://pkg.go.dev/io/ioutil). This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

ioutil.TempDir in *_test.go files can be replaced with t.TempDir from the testing package. The directory created by t.TempDir is automatically removed when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir

cyberb commented 1 year ago

Thank you very much!

Currently integration tests do not function on PRs as credentials for test domains are not visible on them, probably it is time for me to introduce test docker image for Syncloud DDNS service to use. https://github.com/syncloud/platform/issues/662

Still meging this of cause.