Skip to content

Remove deprecated ioutil #24

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Diogenesoftoronto
Copy link

Hey, I don't know if anyone is here to review this but I just thought that I would update this package with some simple updates. I was using it myself and I might add some improvement on top of this if that is okay :)

  • Update the go version
  • Replace the use of ioutil package readall with the os package's readall

- Update the go version
- Replace the use of ioutil package readall with the os package's readall
Go mod can easily manage versions.
- Remove redundant test
- Add more special cases
- Remove reference to ported as it is no longer ported
@@ -1,5 +1,11 @@
module github.com/sabhiram/go-gitignore
module github.com/Diogenesoftoronto/go-gitignore

Choose a reason for hiding this comment

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

I think we should not change the module name:

Suggested change
module github.com/Diogenesoftoronto/go-gitignore
module github.com/sabhiram/go-gitignore

Choose a reason for hiding this comment

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

I'm not sure we need to refactor tests in this PR. Better is to create a separate PR.


go 1.13
go 1.22

Choose a reason for hiding this comment

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

Maybe we can leave the minimum possible version the library is compiled with:

Suggested change
go 1.22
go 1.16

@alexandear
Copy link

Duplicates #23

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