stdlib.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. package deprecated
  2. type Deprecation struct {
  3. DeprecatedSince int
  4. AlternativeAvailableSince int
  5. }
  6. var Stdlib = map[string]Deprecation{
  7. "image/jpeg.Reader": {4, 0},
  8. // FIXME(dh): AllowBinary isn't being detected as deprecated
  9. // because the comment has a newline right after "Deprecated:"
  10. "go/build.AllowBinary": {7, 7},
  11. "(archive/zip.FileHeader).CompressedSize": {1, 1},
  12. "(archive/zip.FileHeader).UncompressedSize": {1, 1},
  13. "(archive/zip.FileHeader).ModifiedTime": {10, 10},
  14. "(archive/zip.FileHeader).ModifiedDate": {10, 10},
  15. "(*archive/zip.FileHeader).ModTime": {10, 10},
  16. "(*archive/zip.FileHeader).SetModTime": {10, 10},
  17. "(go/doc.Package).Bugs": {1, 1},
  18. "os.SEEK_SET": {7, 7},
  19. "os.SEEK_CUR": {7, 7},
  20. "os.SEEK_END": {7, 7},
  21. "(net.Dialer).Cancel": {7, 7},
  22. "runtime.CPUProfile": {9, 0},
  23. "compress/flate.ReadError": {6, 6},
  24. "compress/flate.WriteError": {6, 6},
  25. "path/filepath.HasPrefix": {0, 0},
  26. "(net/http.Transport).Dial": {7, 7},
  27. "(*net/http.Transport).CancelRequest": {6, 5},
  28. "net/http.ErrWriteAfterFlush": {7, 0},
  29. "net/http.ErrHeaderTooLong": {8, 0},
  30. "net/http.ErrShortBody": {8, 0},
  31. "net/http.ErrMissingContentLength": {8, 0},
  32. "net/http/httputil.ErrPersistEOF": {0, 0},
  33. "net/http/httputil.ErrClosed": {0, 0},
  34. "net/http/httputil.ErrPipeline": {0, 0},
  35. "net/http/httputil.ServerConn": {0, 0},
  36. "net/http/httputil.NewServerConn": {0, 0},
  37. "net/http/httputil.ClientConn": {0, 0},
  38. "net/http/httputil.NewClientConn": {0, 0},
  39. "net/http/httputil.NewProxyClientConn": {0, 0},
  40. "(net/http.Request).Cancel": {7, 7},
  41. "(text/template/parse.PipeNode).Line": {1, 1},
  42. "(text/template/parse.ActionNode).Line": {1, 1},
  43. "(text/template/parse.BranchNode).Line": {1, 1},
  44. "(text/template/parse.TemplateNode).Line": {1, 1},
  45. "database/sql/driver.ColumnConverter": {9, 9},
  46. "database/sql/driver.Execer": {8, 8},
  47. "database/sql/driver.Queryer": {8, 8},
  48. "(database/sql/driver.Conn).Begin": {8, 8},
  49. "(database/sql/driver.Stmt).Exec": {8, 8},
  50. "(database/sql/driver.Stmt).Query": {8, 8},
  51. "syscall.StringByteSlice": {1, 1},
  52. "syscall.StringBytePtr": {1, 1},
  53. "syscall.StringSlicePtr": {1, 1},
  54. "syscall.StringToUTF16": {1, 1},
  55. "syscall.StringToUTF16Ptr": {1, 1},
  56. "(*regexp.Regexp).Copy": {12, 12},
  57. "(archive/tar.Header).Xattrs": {10, 10},
  58. "archive/tar.TypeRegA": {11, 1},
  59. "go/types.NewInterface": {11, 11},
  60. "(*go/types.Interface).Embedded": {11, 11},
  61. "go/importer.For": {12, 12},
  62. "encoding/json.InvalidUTF8Error": {2, 2},
  63. "encoding/json.UnmarshalFieldError": {2, 2},
  64. "encoding/csv.ErrTrailingComma": {2, 2},
  65. "(encoding/csv.Reader).TrailingComma": {2, 2},
  66. "(net.Dialer).DualStack": {12, 12},
  67. "net/http.ErrUnexpectedTrailer": {12, 12},
  68. "net/http.CloseNotifier": {11, 7},
  69. "net/http.ProtocolError": {8, 8},
  70. "(crypto/x509.CertificateRequest).Attributes": {5, 3},
  71. // This function has no alternative, but also no purpose.
  72. "(*crypto/rc4.Cipher).Reset": {12, 0},
  73. "(net/http/httptest.ResponseRecorder).HeaderMap": {11, 7},
  74. // All of these have been deprecated in favour of external libraries
  75. "syscall.AttachLsf": {7, 0},
  76. "syscall.DetachLsf": {7, 0},
  77. "syscall.LsfSocket": {7, 0},
  78. "syscall.SetLsfPromisc": {7, 0},
  79. "syscall.LsfJump": {7, 0},
  80. "syscall.LsfStmt": {7, 0},
  81. "syscall.BpfStmt": {7, 0},
  82. "syscall.BpfJump": {7, 0},
  83. "syscall.BpfBuflen": {7, 0},
  84. "syscall.SetBpfBuflen": {7, 0},
  85. "syscall.BpfDatalink": {7, 0},
  86. "syscall.SetBpfDatalink": {7, 0},
  87. "syscall.SetBpfPromisc": {7, 0},
  88. "syscall.FlushBpf": {7, 0},
  89. "syscall.BpfInterface": {7, 0},
  90. "syscall.SetBpfInterface": {7, 0},
  91. "syscall.BpfTimeout": {7, 0},
  92. "syscall.SetBpfTimeout": {7, 0},
  93. "syscall.BpfStats": {7, 0},
  94. "syscall.SetBpfImmediate": {7, 0},
  95. "syscall.SetBpf": {7, 0},
  96. "syscall.CheckBpfVersion": {7, 0},
  97. "syscall.BpfHeadercmpl": {7, 0},
  98. "syscall.SetBpfHeadercmpl": {7, 0},
  99. "syscall.RouteRIB": {8, 0},
  100. "syscall.RoutingMessage": {8, 0},
  101. "syscall.RouteMessage": {8, 0},
  102. "syscall.InterfaceMessage": {8, 0},
  103. "syscall.InterfaceAddrMessage": {8, 0},
  104. "syscall.ParseRoutingMessage": {8, 0},
  105. "syscall.ParseRoutingSockaddr": {8, 0},
  106. "InterfaceAnnounceMessage": {7, 0},
  107. "InterfaceMulticastAddrMessage": {7, 0},
  108. "syscall.FormatMessage": {5, 0},
  109. }