.
This commit is contained in:
parent
c55f513e68
commit
055d0e4818
2
main.go
2
main.go
@ -57,7 +57,7 @@ func exportDb(inputPath, outputDir, format, title string, stride int, pretty boo
|
||||
}
|
||||
|
||||
func serveDb(serveDir string, port int) error {
|
||||
log.Printf("starting dictionary server on port %d for extension...\n", port)
|
||||
log.Printf("starting dictionary server on port %d...\n", port)
|
||||
return http.ListenAndServe(fmt.Sprintf(":%d", port), http.FileServer(http.Dir(serveDir)))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user