package codeutil import ( "fmt" "github.com/jsyzchen/pan/file" ) // 上传文件到百度网盘 func UploadBaidu(accessToken string, path string, localFilePath string){ fileUploader := file.NewUploader(accessToken, path, localFilePath) res, err := fileUploader.Upload() if err != nil { fmt.Println("err:", err) return } fmt.Println(res) }