Check out example codes for "golang find in string". It will help you in understanding the concepts better.

Code Example 1

// 1. Contains
res := strings.Contains(str, substr)
fmt.Println(res) // true

Learn ReactJs, React Native from akashmittal.com