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

Simplify getExtension with filepath.Ext #60

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Conversation

apocelipes
Copy link
Contributor

The original method of splitting a string with a "." to get a file extension in getExtension is complicated and unintuitive, so I reimplemented this function with filepath.Ext.

@boyter
Copy link
Owner

boyter commented Feb 28, 2019

Oh very nice. I had a feeling there was something wrong when I wrote that. Thanks for the PR.

@boyter boyter merged commit c3110ff into boyter:master Feb 28, 2019
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

2 participants