Last analyzed 18feb92 9 days ago
Default analysis branch is
Currently analyzing run
Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
13 days ago6 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.
  4	"encoding/json"
  5	"errors"
  6	"fmt"
  7	"io/ioutil"  8	"os"
  9	"os/user"
 10	"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.
  5
  6import (
  7	"fmt"
  8	"io/ioutil"  9	"net"
 10	"os"
 11	"os/exec"
limits.CPU.LimitInShares is deprecated: Use Weight instead.
142		memoryResources *specs.LinuxMemory
143		pidLimit        *specs.LinuxPids
144	)
145	shares := limits.CPU.LimitInShares146	if limits.CPU.Weight > 0 {
147		shares = limits.CPU.Weight
148	}
"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.
  6	"encoding/json"
  7	"errors"
  8	"fmt"
  9	"io/ioutil" 10	"path/filepath"
 11	"strings"
 12
"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	"bytes"
 5	"encoding/json"
 6	"io/ioutil" 7	"net/http"
 8
 9	"sigs.k8s.io/yaml"