// Chapter 16 example: strings.Contains gives a bool, so if can use it. // Run with: go run exercises/16/06-contains.go package main import ( "fmt" "strings" ) func main() { message := "a dragon is sleeping in the cave" if strings.Contains(message, "dragon") { fmt.Println("Be careful.") } else { fmt.Println("All clear.") } // Try changing the word in message from "dragon" to "cat". }