GoStringstrings.Count

Counts the number of non-overlapping instances of substr in s.

문법

strings.Count(s, substr string) int