Skip to content

Commit

Permalink
updated the docs
Browse files Browse the repository at this point in the history
Signed-off-by: F. Talha Altinel <talhaaltinel@hotmail.com>
  • Loading branch information
mrwormhole authored and alexellis committed Jun 29, 2022
1 parent 84f7ef8 commit 7fccf7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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)
Expand Down

0 comments on commit 7fccf7b

Please sign in to comment.