Go の進化に伴い、golang.org/x/exp/slices や golang.org/x/exp/maps などの実験的パッケージの多くが Go 1.21 以降で標準ライブラリに取り込まれました。古い実験的パッケージを使い続けると、不要な外部依存が残り、最新の最適化やバグ修正を受けられません。
// exptostd が警告: slices.Contains can be replaced by slices.Contains from the standard library funcHasAdmin(roles []string)bool { return slices.Contains(roles, "admin") }
// exptostd が警告: slices.Sort can be replaced by slices.Sort from the standard library funcSortIDs(ids []int) { slices.Sort(ids) }