hackpadfs icon indicating copy to clipboard operation
hackpadfs copied to clipboard

embed

Open gedw99 opened this issue 2 years ago • 1 comments

I think it would be cool if the https://pkg.go.dev/embed package was supported.

Tinygo just got support for EMbed as well as generics https://github.com/tinygo-org/tinygo/releases/tag/v0.24.0

gedw99 avatar Jul 05 '22 04:07 gedw99

Hey @gedw99. What did you have in mind for hackpadfs support? It looks like embed is already interoperable with the built-in io/fs package, so it works with hackpadfs out of the box. 👍

JohnStarich avatar Jul 09 '22 23:07 JohnStarich

Ah it’s API compatible ? Will try embed out then. Thanks @JohnStarich

I wanted to use this as a test tool: https://github.com/twpayne/go-vfs

there is a compatible layer here for Adern btw: https://github.com/twpayne/go-vfsafero

then I want to try to get go-git working: https://github.com/go-git/go-git

Running a git server with only go-get using binary patches works today so there is no logical reason that a git client can work.

gedw99 avatar Mar 01 '23 19:03 gedw99

Yep, fully compatible with the standard library just like hackpadfs. I'll go ahead and close – feel free to continue the conversation!

Those libraries are interesting, although they take a "large interface" approach. I've found that style is not easy to work with.[1][2]

JohnStarich avatar Mar 05 '23 19:03 JohnStarich