From a012228c8ee775af49594835ac1cf101f1d971a7 Mon Sep 17 00:00:00 2001 From: "F. Talha Altinel" Date: Sun, 12 Jun 2022 10:36:50 +0100 Subject: [PATCH] updated the docs Signed-off-by: F. Talha Altinel --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02630f9..024b330 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,13 @@ To read this back at runtime, you can do the following: package function import ( - "io/ioutil" "net/http" + "os" ) func Handle(w http.ResponseWriter, r *http.Request) { - data, err := ioutil.ReadFile("./static/file.txt") + data, err := os.ReadFile("./static/file.txt") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError)