go处理文件上传和多个文件上传
单文件上传模板 uploadOne.html <!doctype html> <html> <head> <meta charset="UTF-8"> <title>uploadOne</title> < ...
单文件上传模板 uploadOne.html <!doctype html> <html> <head> <meta charset="UTF-8"> <title>uploadOne</title> < ...
package authcode import ( "encoding/base64" "fmt" "strings" "time" "strconv" "log" "crypto/md5" "encoding/hex" ) // base64 加密 /* func Base64_encode(s string) string { return base64.StdEncoding.EncodeToString( ...
package main import ( "fmt" "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql" ) type User struct { Id int Name string `orm:"size(100)"` } func init() { orm. ...
配置文件内的key不区分大小写 App配置 #App配置 AppName = ApiService RunMode = dev RouterCaseSensitive = true ServerName = ApiService RecoverPanic = true CopyRequestBody = true EnableGzip = false MaxMemory = 1 << 26 EnableErrorsShow = true EnableErrorsRender = false ...
卸载 gitlab-ctl uninstall 运维 # 修改默认的配置文件 vim /etc/gitlab/gitlab.rb # 查看版本 cat /opt/gitlab/embedded/service/gitlab-rails/VERSION # echo "vm.overcommit_memory=1" >> /etc/ ...