GoAdminGroup / go-admin

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
7 days 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.
   5	"errors"
   6	"fmt"
   7	"html/template"
   8	"io/ioutil"   9	"net/http"
  10	"strconv"
  11	"strings"
"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.
   8	"encoding/json"
   9	"fmt"
  10	"html/template"
  11	"io/ioutil"  12	"path/filepath"
  13	"reflect"
  14	"strconv"
"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.
 2
 3import (
 4	"encoding/json"
 5	"io/ioutil" 6
 7	"github.com/GoAdminGroup/go-admin/context"
 8	"github.com/GoAdminGroup/go-admin/modules/logger"
"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.
  2
  3import (
  4	"encoding/json"
  5	"io/ioutil"  6	"net/http"
  7	"strings"
  8