Skip to content

Use file interface instead of requiring os.File#2

Merged
muesli merged 1 commit intomuesli:mainfrom
hinshun:file-iface
Feb 10, 2022
Merged

Use file interface instead of requiring os.File#2
muesli merged 1 commit intomuesli:mainfrom
hinshun:file-iface

Conversation

@hinshun
Copy link
Contributor

@hinshun hinshun commented Feb 10, 2022

I have some downstreams that won't be able to provide os.File but something close to it.

@muesli
Copy link
Owner

muesli commented Feb 10, 2022

Probably makes sense. Curious, what types / implementations of this interface are you referring to?

@hinshun hinshun force-pushed the file-iface branch 2 times, most recently from e907927 to 31416e3 Compare February 10, 2022 16:56
@hinshun
Copy link
Contributor Author

hinshun commented Feb 10, 2022

For example containerd's console.Console or console.File:
https://github.com/containerd/console/blob/main/console.go#L36

Signed-off-by: Edgar Lee <edgarl@netflix.com>
@muesli muesli merged commit fc0e978 into muesli:main Feb 10, 2022
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.

2 participants