上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页
摘要: 创建引擎组时,我们可以指示特殊的负载平衡策略。xorm上有5个负载平衡。它们是RandomPolicy,WeightRandomPolicy,RoundRobinPolicy,WeightRoundRobinPolicy和LeastConnPolicy。您还可以根据GroupPolicy界面实施自己 阅读全文
posted @ 2020-04-17 10:02 杨鑫Zz 阅读(261) 评论(0) 推荐(0)
摘要: 中文文档 http://gobook.io/read/gitea.com/xorm/manual-en-US/chapter-01/3.policy.html https://www.bookstack.cn/read/xorm/chapter-02-3.tags.md 阅读全文
posted @ 2020-04-17 09:57 杨鑫Zz 阅读(224) 评论(0) 推荐(0)
摘要: package main import ( "database/sql" "fmt" "github.com/dgrijalva/jwt-go" _ "github.com/go-sql-driver/mysql" "github.com/iris-contrib/middleware/cors" 阅读全文
posted @ 2020-04-14 17:36 杨鑫Zz 阅读(801) 评论(0) 推荐(0)
摘要: github 源码地址https://github.com/kataras/iris 中文文档 https://studyiris.com/doc/ https://studyiris.com/example/ 官方网站 https://iris-go.com/ 执行安装命令前初始化项目目录直接在g 阅读全文
posted @ 2020-04-08 14:44 杨鑫Zz 阅读(307) 评论(0) 推荐(0)
摘要: 一,yum包更新到最新 输入 : sudo yum update 二,安装需要的安装包 输入 :sudo yum install -y yum-utils device-mapper-persistent-data lvm2 三,将yum源设置阿里云 输入: sudo yum-config-mana 阅读全文
posted @ 2020-02-20 21:16 杨鑫Zz 阅读(140) 评论(0) 推荐(0)
摘要: //接口 就是一系列的方法集合 type Inner interface { run() speak() } type Piii struct { name string id int } type Diii struct { name string id int bol bool } func(p 阅读全文
posted @ 2019-12-12 21:30 杨鑫Zz 阅读(205) 评论(0) 推荐(0)
摘要: package main import "fmt" //异常处理 //defer panic recover //defer 表示延迟调用,即便程序出现严重错误,也会执行 //panic 就是python中的raise(主动抛出异常) //recover 恢复程序,继续执行 func main() 阅读全文
posted @ 2019-12-12 21:30 杨鑫Zz 阅读(130) 评论(0) 推荐(0)
摘要: //方法,其实就是函数 type Prince struct { name string age int sex int } //语法 func (a Prince) GitName() { } //方法给对象用 func (a Prince)git() { fmt.Println(a.name) 阅读全文
posted @ 2019-12-12 17:04 杨鑫Zz 阅读(176) 评论(0) 推荐(0)
摘要: func main() { //结构体:一系列属性的集合 //格式: //type是关键字 结构体的名字 struct{} type xxx struct { name string sex,age int //设置属性 } //匿名字段表示字段没有名字 type Ppp struct { stri 阅读全文
posted @ 2019-12-11 21:49 杨鑫Zz 阅读(253) 评论(0) 推荐(0)
摘要: func main() { //go中的指针 //经典三句话, /* &取地址的符号 *放类型旁边的,表示指向这个类型的指针 *放在变量旁边,表示解引用 */ //a:=10 //b:=&a //这个b就是指针指向的就是内存地址 //fmt.Println(b) //c:=*b //这个c就是反解 阅读全文
posted @ 2019-12-11 21:32 杨鑫Zz 阅读(104) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页
点击右上角即可分享
微信分享提示