initial planning
This commit is contained in:
15
cmd/serve/main.go
Normal file
15
cmd/serve/main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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))))
|
||||
}
|
Reference in New Issue
Block a user