Contact: aviboots(AT)netvision.net.il
40,764 questions
53,140 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 */