Examples using... strings.Index()

Recent
LastIndex returns the index of the last instance of substr in s, or -1 if substr is not present in s.
Index returns the index of the first instance of substr in s, or -1 if substr is not present in s.