Before the hike, the packing list is in items. Write PackBag(items) to add "water" at the end and return the list. An empty list gets water too.
PackBag([]string{"map", "hat"})→['map', 'hat', 'water']PackBag([]string{})→['water']func PackBag(items []string) []stringpackage main
func PackBag(items []string) []string {
// your code here: append "water" to the end of items
return items
}
Run tries the examples. When they look right, Submit.