Skip to content

Commit 7fccf7b

Browse files
mrwormholealexellis
authored andcommitted
updated the docs
Signed-off-by: F. Talha Altinel <[email protected]>
1 parent 84f7ef8 commit 7fccf7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ To read this back at runtime, you can do the following:
4040
package function
4141

4242
import (
43-
"io/ioutil"
4443
"net/http"
44+
"os"
4545
)
4646

4747
func Handle(w http.ResponseWriter, r *http.Request) {
4848

49-
data, err := ioutil.ReadFile("./static/file.txt")
49+
data, err := os.ReadFile("./static/file.txt")
5050

5151
if err != nil {
5252
http.Error(w, err.Error(), http.StatusInternalServerError)

0 commit comments

Comments
 (0)