Skip to content

Conversation

@floppyzedolfin
Copy link
Owner

No description provided.

@floppyzedolfin floppyzedolfin force-pushed the dev branch 5 times, most recently from 4683ab5 to 8e03855 Compare February 28, 2021 16:33

// 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 {
Copy link
Owner Author

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.

Copy link

@alienorlatour alienorlatour left a 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

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.

@floppyzedolfin floppyzedolfin force-pushed the dev branch 4 times, most recently from cc1ddb5 to 46da94d Compare February 28, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants