whatsthecodeforthat.com

What's the code for Index of Substring in go?

import "strings"

idx := strings.Index(s, substring)