Skip to content

Commit 06aa835

Browse files
committed
knowledge: add deprecated for Go 1.24
1 parent 0f2f291 commit 06aa835

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

knowledge/deprecated.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ var StdlibDeprecations = map[string]Deprecation{
209209
"go/ast.Scope": {"go1.22", "go1.0"},
210210
"html/template.ErrJSTemplate": {"go1.22", DeprecatedUseNoLonger},
211211
"reflect.PtrTo": {"go1.22", "go1.18"},
212+
213+
// Technically, runtime.GOROOT could be considered DeprecatedNeverUse, but
214+
// using it used to be a lot more common and accepted.
215+
"runtime.GOROOT": {"go1.24", DeprecatedUseNoLonger},
216+
// These are never safe to use; a concrete alternative was added in Go 1.2 (crypto/cipher.AEAD).
217+
"crypto/cipher.NewCFBDecrypter": {"go1.24", "go1.2"},
218+
"crypto/cipher.NewCFBEncrypter": {"go1.24", "go1.2"},
219+
"crypto/cipher.NewOFB": {"go1.24", "go1.2"},
212220
}
213221

214-
// Last imported from Go at e8ee1dc4f9e2632ba1018610d1a1187743ae397f
222+
// Last imported from GOROOT/api/go1.24.txt at fadfe2fc80f6b37e99b3e7aa068112ff539717c9.

0 commit comments

Comments
 (0)