string.go
func StringFilter(f func(string) bool, data []string) []string {
	result := make([]string, 0, 0)
	for _, element := range data {
		if f(element) {
			result = append(result, element)
		}
	}
	return result
}
func StringFilter(f func(string) bool, data []string) []string {
	result := make([]string, 0, 0)
	for _, element := range data {
		if f(element) {
			result = append(result, element)
		}
	}
	return result
}
func StringFilter ( f func ( string ) bool , data [ ] string ) [ ] string { result := make ( [ ] string , 0 , 0 ) for _ , element := range data { if f ( element ) { result = append ( result , element ) } } return result }
// Filter out all strings where the function does not return true.
Filter out all strings where the function does not return true .