Strings / Find string in another string / Essential Go
package main
import (
"fmt"
"strings"
)
func main() {
s := "hello and second hello"
toFind := "hello"
idx := strings.LastIndex(s, toFind)
fmt.Printf("when searching from end, '%s' is in s at position %d\n", toFind, idx)
}INFO