package main
import (
"fmt"
"net/http"
)
func main() {
http.Handle("/s/", http.StripPrefix("/s/", http.FileServer(http.Dir("/home/steven/Downloads"))))
err := http.ListenAndServe(":8090", nil)
if err != nil {
fmt.Println(err)
}
}
import (
"fmt"
"net/http"
)
func main() {
http.Handle("/s/", http.StripPrefix("/s/", http.FileServer(http.Dir("/home/steven/Downloads"))))
err := http.ListenAndServe(":8090", nil)
if err != nil {
fmt.Println(err)
}
}
评论
发表评论