You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Afero package would be a great replacement for the existing util/file_util package with better design and expanded functionality such as Mock Filesystems for testing.
Problem Definition
Koch is a minimal web server sdk - not a file utility module. We currently maintain two utility modules in the util folder: file_util and http_util. It makes the most sense to remove these from the project and replace them with better tested, community-used packages. In this case, we propose to replace file_util with Afero.
Proposal
The functions exposed by Afero already very nicely mirror those exposed by our util/file_util package, so this will mainly be a swap job. FS setup (create a global or scoped appFS object) will also need to be added to the app during initialization.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
The Afero package would be a great replacement for the existing
util/file_util
package with better design and expanded functionality such as Mock Filesystems for testing.Problem Definition
Koch is a minimal web server sdk - not a file utility module. We currently maintain two utility modules in the
util
folder:file_util
andhttp_util
. It makes the most sense to remove these from the project and replace them with better tested, community-used packages. In this case, we propose to replacefile_util
with Afero.Proposal
The functions exposed by Afero already very nicely mirror those exposed by our
util/file_util
package, so this will mainly be a swap job. FS setup (create a global or scopedappFS
object) will also need to be added to the app during initialization.For Admin Use
The text was updated successfully, but these errors were encountered: