2014年10月8日

GO断言

摘要: v,ok:=modle.(*modles.xxxxx)v是值ok是bool 阅读全文

posted @ 2014-10-08 10:08 WenYh 阅读(175) 评论(0) 推荐(0)

2014年9月22日

Beego模型定义

摘要: AuthUser -> auth_userAuth_User -> auth__userDB_AuthUser -> d_b__auth_user除了开头的大写字母以外,遇到大写会增加 _,原名称中的下划线保留UploadName string `orm:"column(uploadName)"`红... 阅读全文

posted @ 2014-09-22 16:19 WenYh 阅读(435) 评论(0) 推荐(0)

2014年9月16日

Go_上传文件

摘要: SaveToFile("upload", path.Join("upload", uploadName))1:上传的文件2:存的路径 阅读全文

posted @ 2014-09-16 11:59 WenYh 阅读(123) 评论(0) 推荐(0)

2014年9月15日

数组去重

摘要: public static void main(String[] args) { String a = "a"; String[] F = { "A", "B", "C" }; List s = Arrays.asList(F);//数组转List if(s.contains(a)... 阅读全文

posted @ 2014-09-15 11:32 WenYh 阅读(191) 评论(0) 推荐(0)

导航