A DNS server that offers useful utilities and services over the DNS protocol. Weather, world time, unit conversion etc.
2.48k
stars
135
forks
source link
Deprecated "io/ioutil" package is used in the main function #76
Closed
AtharvaMahamuni closed 3 months ago
It is observed that to read and write the file, "io/ioutil" package is used in few files, which is now deprecated from Go 1.16
Change
ioutil.ReadFile -> os.ReadFile (main.go)
ioutil.WriteFile -> os.WriteFile (main.go)
ioutil.ReadAll -> io.ReadAll (weather.go, fx.go)
ioutil.Discard -> io.Discard (weather.go)