El map shelf de la oficina de objetos perdidos dice dónde se guarda cada objeto. Escribe FoundAt(shelf, item) para devolver dónde está el objeto, como "box 3", o "not found" si no está en el map.
FoundAt(map[string]string{"umbrella": "shelf A", "scarf": "box 3"}, "scarf")→'box 3'FoundAt(map[string]string{"umbrella": "shelf A"}, "keys")→'not found'func FoundAt(shelf map[string]string, item string) stringpackage main
func FoundAt(shelf map[string]string, item string) string {
// tu código aquí: busca dónde está item y devuélvelo si está
return "not found"
}
Ejecutar prueba los ejemplos. Cuando salgan bien, Enviar.