package people import "strings" // SuperPowers list of an SuperHero. // Normal person has no super-power? // Perhaps we just don't know enough to distinguish the qualities in each individual person. Sad but true. type SuperPowers []string // Contains superpower list the strength? // Not go idiomatic? Okay, we can discuss it. func (s *SuperPowers) Contains(power string) bool { for _, p := range *s { if strings.EqualFold(p, power) { return true } } return false }