// Homework 23, problem 3: Safe lookup. // // Define a function lookup(player map[string]string, key string) string that // returns the value if the key exists, or the string "(not found)" if it does // not. Test it with three calls: a hit, a miss, and a key held in a variable. // // Run with: go run exercises/23/homework/03-safe-lookup.go package main import "fmt" // TODO: define lookup here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }