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

align tinyfs with Go 1.16+ io/fs package #6

Open
bgould opened this issue Jun 20, 2021 · 2 comments
Open

align tinyfs with Go 1.16+ io/fs package #6

bgould opened this issue Jun 20, 2021 · 2 comments
Labels
enhancement New feature or request next-release

Comments

@bgould
Copy link
Member

bgould commented Jun 20, 2021

Go 1.16 adds a new package io/fs with interfaces that function as an abstraction layer for filesystems. The analogous interfaces in TinyGo/tinyfs are very close to the ones in the io/fs package, so we should implement those "natively" where possible, at least for Go 1.16 users.

It may be worth considering to require Go 1.16 for using tinyfs going forward so that we can avoid cluttering up the codebase with build tags, etc., to account for the missing io/fs package for Go 1.15 and below.

@deadprogram
Copy link
Member

Seems like we still need this @bgould ?

@bgould
Copy link
Member Author

bgould commented Mar 6, 2024

Ok ... took a look at this, shouldn't be too bad to get basic fs.FS support added ... I will create a PR soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next-release
Projects
None yet
Development

No branches or pull requests

2 participants