Go1.21侯选版增加3个使用泛型的标准库
Go1.21侯选版已发布 官方Blog https://go.dev/blog/go1.21rc 部分原文如下: Standard library additions New log/slog package for structured logging. New slices package for common operations on slices of any element type. This includes sorting functions that are generally faster and more ergonomic than the sort package. New maps package for common operations on maps