I made it work with status web site in the folder "www": --- package main
import ( "embed" "log" "net/http" ) //go:embed www var src embed.FS func main() { // http://localhost:8080/www/ filehandler := http.FileServer(http.FS(src)) http.Handle("/", http.StripPrefix("/", filehandler)) // Run the web server. log.Fatal(http.ListenAndServe(":8080", nil)) } --- If use this link: http://localhost:8080/www/ the index.html inside is used to render the web site just fine. When I make the request http://localhost:8080 I see the folder www and have to click on it. I should not see the folder in that case. On Tuesday, July 21, 2020 at 8:22:30 AM UTC-7 Russ Cox wrote: > Hi all, > > I've posted two draft designs: one introducing general-purpose file system > interfaces, with Rob Pike; and one for embedding files into Go programs, > with Brad Fitzpatrick. These are draft designs we're circulating for > feedback, not official proposals. (We certainly hope they will be well > received and can be made into proposals, but that's not where we are today.) > > If you are interested, there are docs and videos linked below. Because it > worked well for the //go:build draft design, we're using Reddit again for > the discussion, also linked below. Reddit's proper threading support scales > better than GitHub or a single large mail thread. But for those who don't > want to use Reddit, I will keep an eye on this thread as well and reply as > best I can. > > io/fs draft design > - Video: https://golang.org/s/draft-iofs-video > - Design: https://golang.org/s/draft-iofs-design > - Q&A: https://golang.org/s/draft-iofs-reddit > > //go:embed draft design > - Video: https://golang.org/s/draft-embed-video > - Design: https://golang.org/s/draft-embed-design > - Q&A: https://golang.org/s/draft-embed-reddit > > Thanks! > > Best, > Russ > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d3939300-abb4-442a-936a-af87e702c941n%40googlegroups.com.