this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feneradam: use provided output, remove io/ioutil

+2 -3
+2 -3
feneradam/main.go
··· 5 5 "flag" 6 6 "fmt" 7 7 "io" 8 - "io/ioutil" 9 8 "log/slog" 10 9 "net/http" 11 10 "os" ··· 86 85 Matches: matchInfos, 87 86 Duration: timediff.TimeDiff(end, timediff.WithStartTime(start)), 88 87 } 89 - err = tmpl.Execute(os.Stdout, data) 88 + err = tmpl.Execute(stdout, data) 90 89 if err != nil { 91 90 return fmt.Errorf("output: execute: %w", err) 92 91 } ··· 161 160 return nil, fmt.Errorf("fetch-calendar: response: non-ok response, status: %v", resp.StatusCode) 162 161 } 163 162 164 - body, err := ioutil.ReadAll(resp.Body) 163 + body, err := io.ReadAll(resp.Body) 165 164 if err != nil { 166 165 return nil, fmt.Errorf("fetch-calendar: body: %w", err) 167 166 }