Go count kejadian substring
package main
import "fmt"
import "strings"
func main() {
fmt.Printf("%d\n", strings.Count("sea shells sea shells on the sea shore", "sea")) // 3
}
Mackerel