Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 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 */