library/cmd/serve/main.go

16 lines
249 B
Go
Raw Normal View History

2021-06-26 18:08:35 +00:00
package main
import (
"fmt"
"io/fs"
"net/http"
"git.yetaga.in/alazyreader/library/frontend"
)
// test 3
func main() {
subfs, _ := fs.Sub(frontend.Static, "files")
fmt.Println(http.ListenAndServe(":8080", http.FileServer(http.FS(subfs))))
}