Hey good to know thanks! Just learning go so didn't realize I could do that. Thanks!
there's also strings.Count built-in method ;)
strings.Count("codewarriors", "a") // 1
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.