altexpape
0
Q:

golang find in string

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

New to Communities?

Join the community