CursorPool
← 返回首页
Go 1.24 logo

Go 1.24

0

面向 Cursor 的现代 Go 1.22、1.23、1.24 规则,教授 range-over-func 迭代器、log/slog、http.ServeMux 方法路由、errors.Is/As 与 %w 包装、context 优先 API,并防止 io/ioutil、interface{}、panic(err)、time.After 泄漏等问题。

1 条规则

Modern Go 1.22, 1.23, 1.24 rules for Cursor. Teaches range-over-func iterators, log/slog, http.ServeMux method routing, errors.Is/As + %w wrapping, context-first APIs, and prevents io/ioutil, interface{}, panic(err), time.After leaks.