Il giorno mercoledì 2 maggio 2018 20:47:19 UTC+2, Jan Mercl ha scritto:
>
> On Wed, May 2, 2018 at 8:31 PM Manlio Perillo <manlio....@gmail.com 
> <javascript:>> wrote:
>
> > The interface is different.
> >
> > Open(pkg, path string) ...
>
> Please explain why the 'pkg' argument is needed. Paths can encode any 
> hierarchy.
>
>
This is a function that I wrote some time ago to load an asset stored in 
the package source code directory:
https://play.golang.org/p/u9ba9DUInEJ

Note that you can load assets of any package, not only of the "current" 
package.
This is different from tools like https://github.com/rakyll/statik.


> [...]


Manlio 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to