3 ms·
You can actually return specific errors using verifier library. Check out documentation: https://godoc.org/github.com/storozhukBM/verifier#Verify.WithError http
by storozhukBM 8y ago
You can actually return specific errors using verifier library.
Check out documentation: https://godoc.org/github.com/storozhukBM/verifier#Verify.WithError https://godoc.org/github.com/storozhukBM/verifier#Verify.Wit...
- nostalgeek 8y agoI 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 agoI'm not going to use OP's package, but I'll definitely copy the idea into a local helper. https://gist.github.com/icholy/fc41b8cfe74506cf93ec6b0fba1fc4ce https://gist.github.com/icholy/fc41b8cfe74506cf93ec6b0fba1fc...