Skip to content
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

cgo2: refactor for readability #3771

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sluongng
Copy link
Contributor

This is a no-op refactoring of cgo2 func:

  • Rename from cgo2 to cgo
  • Reorganize function's arguments into a cgoOption struct
  • Replace usages of deprecated ioutil with io and os equivalents

No functionality change is expected.

This is a no-op refactoring of cgo2 func:
- Rename from cgo2 to cgo
- Reorganize function's arguments into a cgoOption struct
- Replace usages of deprecated ioutil with `io` and `os` equivalents

No functionality change is expected.
@sluongng
Copy link
Contributor Author

We could also rename the file from cgo2.go -> cgo.go, but I was afraid of the noisy diff during code review so I decided against it.

@sluongng
Copy link
Contributor Author

This came out of my reading of #3770 to help aid my understanding of the current code.

Zooming out a bit, we already have some of the basic structs such as archiveSrcs in filter.go that we should make use of.

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.

None yet

1 participant