static.go (182B)
1 package static 2 3 import ( 4 "embed" 5 "net/http" 6 ) 7 8 //go:embed css js 9 var files embed.FS 10 11 func Handler() http.Handler { 12 return http.StripPrefix("/static/", http.FileServerFS(files)) 13 }
you-dont-need-reactyou-dont-need-react | |
| git clone git://brookjeynes.dev/bjeynes/you-dont-need-react.git | |
| Log | Files | Refs | README |