- 博客(4)
- 收藏
- 关注
原创 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
3243
原创 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
1110
1
原创 Go获取请求IP地址
loginip := strings.Split(this.Ctx.Request.RemoteAddr, ":")[0]fmt.Println(loginip)
2017-04-20 11:40:32
5244
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
853
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人