Skip to content

Commit d249a43

Browse files
Azuki-baraldas
authored andcommitted
Fixed example using ioutil
1 parent 88ef8bb commit d249a43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/content/guide/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if l, ok := e.Logger.(*log.Logger); ok {
5555
`Echo#Logger.SetOutput(io.Writer)` can be used to set the output destination for
5656
the logger. Default value is `os.Stdout`
5757

58-
To completely disable logs use `Echo#Logger.SetOutput(ioutil.Discard)` or `Echo#Logger.SetLevel(log.OFF)`
58+
To completely disable logs use `Echo#Logger.SetOutput(io.Discard)` or `Echo#Logger.SetLevel(log.OFF)`
5959

6060
### Log Level
6161

website/content/guide/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ data, err := json.MarshalIndent(e.Routes(), "", " ")
173173
if err != nil {
174174
return err
175175
}
176-
ioutil.WriteFile("routes.json", data, 0644)
176+
os.WriteFile("routes.json", data, 0644)
177177
```
178178

179179
`routes.json`

0 commit comments

Comments
 (0)