Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
package main import ( "fmt" "strings" ) func main() { fmt.Println(strings.IndexByte("go php", 'p')) fmt.Println(strings.IndexByte("go php go", 'g')) fmt.Println(strings.IndexByte("go php", 'e')) } /* run: 3 0 -1 */