patch internal/reflectlite; demo: sort.Ints
This commit is contained in:
11
_demo/sortdemo/sort.go
Normal file
11
_demo/sortdemo/sort.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import "sort"
|
||||
|
||||
func main() {
|
||||
vals := []int{32, 58, 25, 92, 45, 78}
|
||||
sort.Ints(vals)
|
||||
for _, v := range vals {
|
||||
println(v)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user