From 0dcfa32c3af78ea750ef7cb707070b67f35bd382 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 31 Mar 2024 18:01:10 +0800 Subject: [PATCH] Remove deprecated ioutil usage Signed-off-by: Chad Wilson --- build/make.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/make.go b/build/make.go index 960f1e9..e6db96b 100644 --- a/build/make.go +++ b/build/make.go @@ -12,7 +12,6 @@ import ( "flag" "fmt" "io" - "io/ioutil" "log" "os" "os/exec" @@ -327,7 +326,7 @@ var ( ) func getPluginProperties(jsonPropertiesFile string) (map[string]interface{}, error) { - pluginPropertiesJson, err := ioutil.ReadFile(jsonPropertiesFile) + pluginPropertiesJson, err := os.ReadFile(jsonPropertiesFile) if err != nil { fmt.Printf("Could not read %s: %s\n", filepath.Base(jsonPropertiesFile), err) return nil, err