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

Separate Write methods into their own interface #17

Open
b5 opened this issue Oct 25, 2019 · 0 comments
Open

Separate Write methods into their own interface #17

b5 opened this issue Oct 25, 2019 · 0 comments

Comments

@b5
Copy link
Member

b5 commented Oct 25, 2019

Write is pretty basic, but after some thought I've come to believe we don't want write multiplexing. So Writable should get it's own interface:

type WriteableFilesystem interface {
  Put(ctx context.Context, f File) (string, error)
}

This way mix can not implement this interface, which'll show users they must first demux before writing.

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

1 participant