Contact: aviboots(AT)netvision.net.il
40,764 questions
53,140 answers
573 users
package main import ( "fmt" "strings" ) func main() { fmt.Println(strings.LastIndexByte("go php", 'p')) fmt.Println(strings.LastIndexByte("go php go", 'g')) fmt.Println(strings.LastIndexByte("go php", 'e')) } /* run: 5 7 -1 */