Go introduced the slices package with common operations:
import "slices"
s := []int{3, 1, 4, 1, 5}
slices.Sort(s) // sort in place
slices.Reverse(s) // reverse in place
slices.Contains(s, 4) // true
slices.Index(s, 4) // returns index or -1
These functions work with any slice type using generics. They save you from writing common algorithms yourself.