go-gdpr
go-gdpr copied to clipboard
fix unit test and perform small refactor on other errors
- I note that one unit tests was failing
- since the min go version is 1.13 we can use %w to wrap error instead perform string interpolation with %s
- I fix one typo in one error message
- In one case I switch from
fmt.Errorftoerrors.Newsince the has a simple string message.