Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dearchap
Copy link
Contributor

@dearchap dearchap commented Apr 5, 2021

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

Trying to make sure that function calls of the type someFoo(something, ctx) are part of receiver of ctx as (ctx *Context) someFoo(something). The error interfaces that were defined in context.go were shifted to errors.go. This makes the code more logical and clean. This is one step in making the code more modular.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

No logic was changed. This is a simple rearranging of the code to make it more structured. No new tests were added. Existing tests remain the same but with new function signatures for ctx methods.

Testing

go test ./...

Release Notes

None.


@dearchap dearchap requested a review from a team as a code owner April 5, 2021 12:02
@dearchap dearchap requested review from asahasrabuddhe and saschagrunert and removed request for a team April 5, 2021 12:02
@dearchap dearchap mentioned this pull request Apr 8, 2021
18 tasks
Copy link
Member

@rliebz rliebz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

@rliebz rliebz merged commit 45eecb1 into urfave:master Apr 24, 2021
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.

2 participants