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

embed os.FileInfo in object as interface #45

Open
araddon opened this issue Feb 19, 2018 · 1 comment
Open

embed os.FileInfo in object as interface #45

araddon opened this issue Feb 19, 2018 · 1 comment

Comments

@araddon
Copy link
Contributor

araddon commented Feb 19, 2018

I have noticed use of os.FileInfo inside quite a few projects for reading/iterating files. Would be nice to be able to cast cloudstorage.Object as os.FileInfo for easy alignment with existing code.

https://golang.org/pkg/os/#FileInfo

https://godoc.org/github.com/lytics/cloudstorage#Object

@epsniff
Copy link
Contributor

epsniff commented Feb 20, 2018

sounds good to me. I'll try to think of ways that wouldn't' work and comment here if I can think of any.

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

No branches or pull requests

2 participants