Re: [go-nuts] Re: Is it possible to serve a directory without indexing the contents?

2016-09-16 Thread Rodrigo Kochenburger
Oh, my bad. I've updated the example to properly reference the embedded fs' Open. https://play.golang.org/p/wbfrElxCsH On Thu, Sep 15, 2016 at 8:09 PM tobyjaguar wrote: > Rodrigo, I may need a bit more help with your example. > Can you get me past the Open function, when

Re: [go-nuts] Is it possible to serve a directory without indexing the contents?

2016-09-15 Thread Rodrigo Kochenburger
http.FileServer takes a FileSystem implementation, http.Dir will basically allow accessing any dir/file that's why you get the index for directories. You can create a custom FileSystem implementation: https://play.golang.org/p/BcMLX2NWW7 On Thu, Sep 15, 2016 at 1:40 PM tobyjaguar

Re: [go-nuts] A proposal for generic in go

2016-06-20 Thread Rodrigo Kochenburger
Micky, I'm not sure where you're quoting from but they never said it's never gonna happen. >From the FAQ: "Generics may well be added at some point." and "This remains an open issue". https://golang.org/doc/faq#generics On Mon, Jun 20, 2016 at 4:54 PM Micky wrote: >