From c2eed36cf4496a0b57f01784c398f816d6280dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= Date: Fri, 19 Jan 2024 18:31:41 +0100 Subject: [PATCH] Linter warning fix about deprecated io/ioutil --- gursShp2geoJson.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gursShp2geoJson.go b/gursShp2geoJson.go index d56aa22..6ffb7ea 100644 --- a/gursShp2geoJson.go +++ b/gursShp2geoJson.go @@ -6,7 +6,7 @@ import ( "encoding/json" "flag" "fmt" - "io/ioutil" + "io/fs" "log" "math" "os" @@ -504,7 +504,7 @@ func main() { log.Fatal(err) } - err = ioutil.WriteFile(catGeoJSONFileName, rawJSON, 0644) + err = os.WriteFile(catGeoJSONFileName, rawJSON, fs.FileMode(0644)) if err != nil { log.Fatal(err) }