deprecations
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
"image"
|
||||
"image/color"
|
||||
"image/png"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"math"
|
||||
"os"
|
||||
@ -71,7 +71,7 @@ func NewContactCardFromCompressed(compressed []byte) (*ContactCard, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
output, err := ioutil.ReadAll(gzreader)
|
||||
output, err := io.ReadAll(gzreader)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -94,7 +94,7 @@ func (contact *ContactCard) WriteCompressed(filename string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = ioutil.WriteFile(filename, out, 0600)
|
||||
err = os.WriteFile(filename, out, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user