SyntaxFix
Write A Post
Hire A Developer
Questions
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 }