bangsv / my_lib_go

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
a year agoa year old
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
 1package send_files
 2
 3import (
 4	"io/ioutil" 5	"mime"
 6	"net/http"
 7	"path/filepath"