From 7d2ab1fe79f29c006177ba0c42aab111e1da37dd Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Wed, 13 Sep 2023 10:00:11 +0200 Subject: [PATCH] iotuil.ReadFile is deprecated --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index e02b4a1..cda9430 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,6 @@ import ( "github.com/pivotal-cf/brokerapi" "github.com/pivotal-cf/brokerapi/domain" "github.com/satori/go.uuid" - "io/ioutil" "net/http" "net/url" "os" @@ -113,7 +112,7 @@ func (b *FakeProxyBroker) Services(context.Context) ([]domain.Service, error) { } if b.proxyConfig.ImagePath != "" { - data, err := ioutil.ReadFile(b.proxyConfig.ImagePath) + data, err := os.ReadFile(b.proxyConfig.ImagePath) if err == nil { encoded := base64.RawStdEncoding.EncodeToString(data) metadata.ImageUrl = fmt.Sprintf("data:image/png;base64,%s", encoded)