Which method is best (more idomatic) for testing non-empty strings (in Go)?
if len(mystring) > 0 { }
Or:
if mystring != \"\"
It would be cleaner and less error-prone to use a function like the one below:
func empty(s string) bool { return len(strings.TrimSpace(s)) == 0 }