Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
storozhukBM
· 8y ago · 0 comments
You can actually return specific errors using verifier library. Check out documentation:
https://godoc.org/github.com/storozhukBM/verifier#Verify.Wit...
Comments
[–]
nostalgeek
8y ago
I believe the point of the OP is, you don't need the verifier library at first place. This is one of these dependencies that offer very little for the cost of adding a new dependency to a project.
[–]
icholy
8y ago
I'm not going to use OP's package, but I'll definitely copy the idea into a local helper.
https://gist.github.com/icholy/fc41b8cfe74506cf93ec6b0fba1fc...