-
Notifications
You must be signed in to change notification settings - Fork 0
Dev #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dev #3
Conversation
4683ab5 to
8e03855
Compare
internal/square/square.go
Outdated
|
|
||
| // Square squares the value contained in the request | ||
| func Square(_ fiber.Ctx, req squaredef.Request) (squaredef.Response, *fiber.Error) { | ||
| if err := req.Validate(); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to move the Validate() to the upper layer (squareWrapper), but then I'd have *req.Value with no explicit check in here.
alienorlatour
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some _test files were left unread.
|
|
||
| var ( | ||
| // default parameters - they aren't exposed and can't be changed by the rest of the world, but, in order to properly test this, I can't have hardwritten consts | ||
| defaultLevel = Debug // change this to change the logging threshold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be changed by a parameter to the service.
cc1ddb5 to
46da94d
Compare
No description provided.