beego项目实现多图上传 func (this *UploadImageController)Post() { var imgType ,_=this.GetInt("type",0) var allfiles map[string][]*multipart.FileHeader = this.Ctx.Request.MultipartForm.File var keys
GoLang缩略图+beego项目 import ( "Server_sevenstudio/controllers" "github.com/astaxie/beego" "mime/multipart" "os" "time" "strconv" "strings" "math/rand" "crypto
Go获取当前时间 func TimeNow()time.Time { now,_ := time.Parse("2006-01-02 15:04:05", time.Now().Format("2006-01-02 15:04:05")) return now}