LedFx / ledfx_v3

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
9 months ago9 months 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.
  2
  3import (
  4	"bytes"
  5	"io/ioutil"  6	"net/http"
  7	"testing"
  8)
"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.
  3import (
  4	"encoding/json"
  5	"io"
  6	"io/ioutil"  7	"net/http"
  8	"os"
  9	"path/filepath"
"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.
 12	"context"
 13	"encoding/json"
 14	"fmt"
 15	"io/ioutil" 16	"net/http"
 17	"time"
 18
"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.
  3import (
  4	"encoding/json"
  5	"fmt"
  6	"io/ioutil"  7	"os"
  8	"path/filepath"
  9	"sync"