摘要: `` package handlerimport ( "io" "io/ioutil" "net/http")func UploadHeadler(w http.ResponseWriter, r *http.Request) { if r.Method == "GET" { //返回上传的html 阅读全文
posted @ 2020-03-04 16:29 sh_大神 阅读(1330) 评论(0) 推荐(0)
摘要: package mainimport ( "fmt" "os")func main() { //目录的操作 fmt.Println("请输入文件目录:") var path string fmt.Scan(&path) //打开目录 f, err := os.OpenFile(path, os.O_ 阅读全文
posted @ 2020-01-31 18:32 sh_大神 阅读(2035) 评论(0) 推荐(0)