2
3import (
4 "fmt"
5 "io/ioutil" 6 "log"
7 "net/http"
8 "net/http/httptest"
2
3import (
4 "fmt"
5 "io/ioutil" 6 "log"
7 "net/http"
8 "net/http/httptest"
4 "encoding/json"
5 "fmt"
6 "io"
7 "io/ioutil" 8 "log"
9 "net/http"
10 "os"
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.