pczajkowski / tmsearch

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
3 occurrences in this check
"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	"fmt"
 5	"io/ioutil" 6	"log"
 7	"net/http"
 8	"net/http/httptest"
"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	"fmt"
 5	"io/ioutil" 6	"log"
 7	"net/http"
 8	"net/http/httptest"
"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.
 4	"encoding/json"
 5	"fmt"
 6	"io"
 7	"io/ioutil" 8	"log"
 9	"net/http"
10	"os"