We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f7ef8 commit 7fccf7bCopy full SHA for 7fccf7b
README.md
@@ -40,13 +40,13 @@ To read this back at runtime, you can do the following:
40
package function
41
42
import (
43
- "io/ioutil"
44
"net/http"
+ "os"
45
)
46
47
func Handle(w http.ResponseWriter, r *http.Request) {
48
49
- data, err := ioutil.ReadFile("./static/file.txt")
+ data, err := os.ReadFile("./static/file.txt")
50
51
if err != nil {
52
http.Error(w, err.Error(), http.StatusInternalServerError)
0 commit comments