上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 198 下一页
摘要: Gin 是一个非常优秀的Golang Web Framework,它不光API友好,性能也非常高,并且设计简洁,便于入门。所以它(Gin)非常受欢迎,在Github上已经三万三千多个星星,也是我最喜欢的Web 框架。 入门要求 要想使用Golang Gin这个框架,你必须要得会Golang这门语言, 阅读全文
posted @ 2020-11-12 15:25 brady-wang 阅读(243) 评论(0) 推荐(0)
摘要: https://github.com/pilu/fresh 安装 go get github.com/pilu/fresh 用法 cd /path/to/myapp 重新开始: fresh Fresh将监视文件事件,并且每次创建/修改/删除文件时,Fresh都会生成并重新启动应用程序。如果go bu 阅读全文
posted @ 2020-11-11 12:16 brady-wang 阅读(388) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "time" ) var ch chan int func test(i int) { fmt.Println(i) time.Sleep(1 * 1e9) <-ch } func main() { ch = make(chan int, 5) 阅读全文
posted @ 2020-11-10 21:16 brady-wang 阅读(303) 评论(0) 推荐(0)
摘要: `` /* 定制公告栏时钟位置 / #clockdiv { / left, center, right */ text-align: center; } .aplayer .aplayer-list { max-height: 483px !important; } .aplayer .aplaye 阅读全文
posted @ 2020-10-26 18:34 brady-wang 阅读(111) 评论(0) 推荐(0)
摘要: 在查询过程中,我们经常用到非空和is null的查询,为了更高效的查询,我们应该知道那种方法更快。 在上一篇中,我们已经添加了一些数据。根据这些数据我们就可以来做一些验证。 第一步,is NULL要比ISNULL()的比较 SELECT * from 表名 where 字段名 is NULL SEL 阅读全文
posted @ 2020-10-23 20:16 brady-wang 阅读(988) 评论(0) 推荐(0)
摘要: PHP也能实现区块链? 阅读全文
posted @ 2020-10-21 14:55 brady-wang 阅读(362) 评论(0) 推荐(0)
摘要: <?php /** * 简单的PHP区块链 * @author Yoper * @PHP技术交流QQ群 370648191 * @Email chen.yong.peng@foxmail.com * @wechat YoperMan */ namespace common\library\block 阅读全文
posted @ 2020-10-21 14:26 brady-wang 阅读(291) 评论(0) 推荐(0)
摘要: github地址 https://gitee.com/mirrors/mux#examples 参考代码 package main import ( "fmt" "net/http" "github.com/gorilla/mux" ) func main() { // IMPORTANT: you 阅读全文
posted @ 2020-10-21 12:33 brady-wang 阅读(707) 评论(0) 推荐(0)
摘要: date: 2020-10-21T9:34:32+08:00 title: "kubenates 常用命令" tags: ["k8s"] categories: ["k8s"] 查看所有namespace的pods运行情况 kubectl get pods --all-namespaces 查看具体 阅读全文
posted @ 2020-10-21 09:47 brady-wang 阅读(371) 评论(0) 推荐(0)
摘要: #背景 Kubernetes 对 Pod 进行调度时,以当时集群中各节点的可用资源作为主要依据,自动选择某一个可用的节点,并将 Pod 分配到该节点上。在这种情况下,Pod 中容器数据的持久化如果存储在所在节点的磁盘上,就会产生不可预知的问题,例如,当 Pod 出现故障,Kubernetes 重新调 阅读全文
posted @ 2020-10-20 16:21 brady-wang 阅读(393) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 198 下一页