代码
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
"path/filepath"
"regexp"
)
func main() {
reFilename := regexp.MustCompile(`[^/]+`)
uploadRoot, _ := filepath.Abs(".")
downloadRoot, _ := filepath.Abs(".")
http.HandleFunc("/upload/", func(w http.ResponseWriter, r *http.Request) {
err := r.ParseMultipartForm(10 * 1024 * 1024)

最低0.47元/天 解锁文章
979

被折叠的 条评论
为什么被折叠?



