ended9월 5일· 1 sources
Stop Hand-Rolling Validation in Go — Meet Checker
Why it matters
If you've written more than one HTTP handler in Go, you've written this code: if strings.TrimSpace(req.Name) == "" { return errors.New("name is required") } if !strings.Contains(req.Email, "@") { retu...
1
Sources
+0
24h
—
Growth
16d
Active