golang check if string is word code example Example: check string contains golang import ( "strings" ) strings.Contains("something", "some") // true