diff --git a/079-redis.go b/079-redis.go index 5ec8659..96fa30b 100644 --- a/079-redis.go +++ b/079-redis.go @@ -74,3 +74,4 @@ func main() { // concurrency // reconnection // errors +// redis url diff --git a/084-sort.go b/084-sort.go index b5c2324..2bcc24f 100644 --- a/084-sort.go +++ b/084-sort.go @@ -1,12 +1,20 @@ -package main +package main -import ("fmt"; "sort") +import "fmt" +import "sort" func main() { - strs := []string{"foo", "bar", "bat"} - fmt.Println(strs) - fmt.Println() - + strs := []string{"c", "a", "b"} sort.Strings(strs) fmt.Println(strs) + + ints := []int{7, 2, 4} + sort.Ints(ints) + fmt.Println(ints) } + +/* +$ go run sort.go +[foo bar bat] +[2 4 7] +*/