![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GoLang
Buck_Liu
Where there's a will there's a way.
Just do myself.
展开
-
beego项目实现多图上传
func (this *UploadImageController)Post() { var imgType ,_=this.GetInt("type",0) var allfiles map[string][]*multipart.FileHeader = this.Ctx.Request.MultipartForm.File var keys原创 2017-05-02 17:41:29 · 3192 阅读 · 0 评论 -
GoLang缩略图+beego项目
import ( "Server_sevenstudio/controllers" "github.com/astaxie/beego" "mime/multipart" "os" "time" "strconv" "strings" "math/rand" "crypto原创 2017-04-20 11:44:44 · 1040 阅读 · 2 评论 -
Go获取请求IP地址
loginip := strings.Split(this.Ctx.Request.RemoteAddr, ":")[0]fmt.Println(loginip)原创 2017-04-20 11:40:32 · 5127 阅读 · 2 评论 -
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}原创 2017-04-20 11:36:55 · 814 阅读 · 0 评论