github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/deprecated/stdlib.go (about) 1 package deprecated 2 3 type Deprecation struct { 4 DeprecatedSince int 5 AlternativeAvailableSince int 6 } 7 8 var Stdlib = map[string]Deprecation{ 9 "image/jpeg.Reader": {4, 0}, 10 // FIXME(dh): AllowBinary isn't being detected as deprecated 11 // because the comment has a newline right after "Deprecated:" 12 "go/build.AllowBinary": {7, 7}, 13 "(archive/zip.FileHeader).CompressedSize": {1, 1}, 14 "(archive/zip.FileHeader).UncompressedSize": {1, 1}, 15 "(go/doc.Package).Bugs": {1, 1}, 16 "os.SEEK_SET": {7, 7}, 17 "os.SEEK_CUR": {7, 7}, 18 "os.SEEK_END": {7, 7}, 19 "(net.Dialer).Cancel": {7, 7}, 20 "runtime.CPUProfile": {9, 0}, 21 "compress/flate.ReadError": {6, 6}, 22 "compress/flate.WriteError": {6, 6}, 23 "path/filepath.HasPrefix": {0, 0}, 24 "(net/http.Transport).Dial": {7, 7}, 25 "(*net/http.Transport).CancelRequest": {6, 5}, 26 "net/http.ErrWriteAfterFlush": {7, 0}, 27 "net/http.ErrHeaderTooLong": {8, 0}, 28 "net/http.ErrShortBody": {8, 0}, 29 "net/http.ErrMissingContentLength": {8, 0}, 30 "net/http/httputil.ErrPersistEOF": {0, 0}, 31 "net/http/httputil.ErrClosed": {0, 0}, 32 "net/http/httputil.ErrPipeline": {0, 0}, 33 "net/http/httputil.ServerConn": {0, 0}, 34 "net/http/httputil.NewServerConn": {0, 0}, 35 "net/http/httputil.ClientConn": {0, 0}, 36 "net/http/httputil.NewClientConn": {0, 0}, 37 "net/http/httputil.NewProxyClientConn": {0, 0}, 38 "(net/http.Request).Cancel": {7, 7}, 39 "(text/template/parse.PipeNode).Line": {1, 1}, 40 "(text/template/parse.ActionNode).Line": {1, 1}, 41 "(text/template/parse.BranchNode).Line": {1, 1}, 42 "(text/template/parse.TemplateNode).Line": {1, 1}, 43 "database/sql/driver.ColumnConverter": {9, 9}, 44 "database/sql/driver.Execer": {8, 8}, 45 "database/sql/driver.Queryer": {8, 8}, 46 "(database/sql/driver.Conn).Begin": {8, 8}, 47 "(database/sql/driver.Stmt).Exec": {8, 8}, 48 "(database/sql/driver.Stmt).Query": {8, 8}, 49 "syscall.StringByteSlice": {1, 1}, 50 "syscall.StringBytePtr": {1, 1}, 51 "syscall.StringSlicePtr": {1, 1}, 52 "syscall.StringToUTF16": {1, 1}, 53 "syscall.StringToUTF16Ptr": {1, 1}, 54 }