From 1e40ab62dc569a1575fcc7865b6cdf8566bcbe73 Mon Sep 17 00:00:00 2001 From: Himanshu Pal Date: Sat, 8 Jun 2024 17:44:16 +0530 Subject: [PATCH] removed deprecated ioutil --- lambda-extensions/lambdaapi/extensionapiclient_test.go | 2 +- lambda-extensions/lambdaapi/httpclient.go | 2 +- lambda-extensions/lambdaapi/logsapiclient_test.go | 2 +- lambda-extensions/lambdaapi/telemetryapiclient_test.go | 2 +- lambda-extensions/sumoclient/sumoclient_test.go | 2 +- lambda-extensions/workers/producer.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lambda-extensions/lambdaapi/extensionapiclient_test.go b/lambda-extensions/lambdaapi/extensionapiclient_test.go index 69e7340..223b421 100644 --- a/lambda-extensions/lambdaapi/extensionapiclient_test.go +++ b/lambda-extensions/lambdaapi/extensionapiclient_test.go @@ -3,7 +3,7 @@ package lambdaapi import ( "context" "encoding/json" - "io/ioutil" + ioutil "io" "net/http" "net/http/httptest" "testing" diff --git a/lambda-extensions/lambdaapi/httpclient.go b/lambda-extensions/lambdaapi/httpclient.go index 0bc5587..6bcdda2 100644 --- a/lambda-extensions/lambdaapi/httpclient.go +++ b/lambda-extensions/lambdaapi/httpclient.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "fmt" - "io/ioutil" + ioutil "io" "net/http" ) diff --git a/lambda-extensions/lambdaapi/logsapiclient_test.go b/lambda-extensions/lambdaapi/logsapiclient_test.go index 95cd1bb..52569f7 100644 --- a/lambda-extensions/lambdaapi/logsapiclient_test.go +++ b/lambda-extensions/lambdaapi/logsapiclient_test.go @@ -2,7 +2,7 @@ package lambdaapi import ( "context" - "io/ioutil" + ioutil "io" "net/http" "net/http/httptest" "testing" diff --git a/lambda-extensions/lambdaapi/telemetryapiclient_test.go b/lambda-extensions/lambdaapi/telemetryapiclient_test.go index ddac149..fa42064 100644 --- a/lambda-extensions/lambdaapi/telemetryapiclient_test.go +++ b/lambda-extensions/lambdaapi/telemetryapiclient_test.go @@ -2,7 +2,7 @@ package lambdaapi import ( "context" - "io/ioutil" + ioutil "io" "net/http" "net/http/httptest" "testing" diff --git a/lambda-extensions/sumoclient/sumoclient_test.go b/lambda-extensions/sumoclient/sumoclient_test.go index f3e5ebf..a694eb8 100644 --- a/lambda-extensions/sumoclient/sumoclient_test.go +++ b/lambda-extensions/sumoclient/sumoclient_test.go @@ -3,7 +3,7 @@ package sumoclient import ( "context" "fmt" - "io/ioutil" + ioutil "io" "net/http" "net/http/httptest" "os" diff --git a/lambda-extensions/workers/producer.go b/lambda-extensions/workers/producer.go index dd5819b..774b7c4 100644 --- a/lambda-extensions/workers/producer.go +++ b/lambda-extensions/workers/producer.go @@ -2,7 +2,7 @@ package workers import ( "fmt" - "io/ioutil" + ioutil "io" "net/http" "github.com/sirupsen/logrus"