12 lines
236 B
Go
12 lines
236 B
Go
|
package util
|
||
|
|
||
|
import "log/slog"
|
||
|
|
||
|
// HandleWrite "handles" error in output of ResponseWriter.Write.
|
||
|
// Much useful very wow.
|
||
|
func HandleWrite(_ int, err error) {
|
||
|
if err != nil {
|
||
|
slog.Error("error writing response", "error", err)
|
||
|
}
|
||
|
}
|