// Homework 22, challenge: Reverse a slice. // // Define a function reverse(items []string) []string that returns a NEW slice // with the items in reverse order. The original must not change. Test it with // a slice of strings, and print both before and after. // // Run with: go run exercises/22/homework/04-reverse.go package main import "fmt" // TODO: define reverse here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }