Skip to content

Instantly share code, notes, and snippets.

@evanfoster
Created March 11, 2016 22:19
Show Gist options
  • Save evanfoster/24e66e5d27b7b7a18bf6 to your computer and use it in GitHub Desktop.
Save evanfoster/24e66e5d27b7b7a18bf6 to your computer and use it in GitHub Desktop.
func delete_empty(s []string) []string {
var r []string
for _, str := range s {
if str != "" {
r = append(r, str)
}
}
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment