上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 53 下一页
摘要: 参考链接:https://www.cnblogs.com/apocelipes/p/13907858.html 对于一个完整的嵌入资源,代码中的声明是这样的: //go:embed images var imgs embed.FS //go:embed a.txt var txt []byte // 阅读全文
posted @ 2021-09-26 15:09 salami_china 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://studygolang.com/articles/27181 //注意 //线程池执行有两种,一种执行普通逻辑方法pool,可接受所有方法,另一种执行形同类型的方法(就是每次接收的内容方法都一样) //使用前需要先建立一个对应的pool对象,参数是容量大小和过期时间等, 如 阅读全文
posted @ 2021-09-26 13:54 salami_china 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.jianshu.com/p/2528df878dc4 先搜索: yum --showduplicates list PACKAGE | expand 然后安装: yum install <package name>-<version info> 阅读全文
posted @ 2021-09-24 18:32 salami_china 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://www.cnblogs.com/X-knight/p/10753833.html https://blog.csdn.net/weixin_33966365/article/details/89039190 Bolt是一个纯粹Key/Value模型的程序。该项目的目标是为 阅读全文
posted @ 2021-09-23 16:12 salami_china 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://blog.csdn.net/qq_20817327/article/details/113770498 [root@master ~]# iptables -m addrtype --help iptables v1.4.21 Usage: iptables -[ACD] 阅读全文
posted @ 2021-09-13 14:10 salami_china 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 推荐文章: https://www.cnblogs.com/ycc-blog-2020/p/13855840.html 本用法:on dupdate key update 语句基本功能是:当表中没有原来记录时,就插入,有的话就更新。 1,on duplicate key update 语句根据主键i 阅读全文
posted @ 2021-08-27 21:43 salami_china 阅读(380) 评论(0) 推荐(0) 编辑
摘要: git 仓库:https://github.com/hpcloud/tail.git package main import ( "fmt" "github.com/hpcloud/tail" "strings" ) type InfoData struct { InIntf string OutI 阅读全文
posted @ 2021-08-25 16:20 salami_china 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 源码路径:https://github.com/kubernetes/client-go/blob/master/examples/leader-election/main.go /* Copyright 2018 The Kubernetes Authors. Licensed under the 阅读全文
posted @ 2021-08-23 20:23 salami_china 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://gobyexample.com/http-servers package main import ( "fmt" "net/http" ) func hello(w http.ResponseWriter, req *http.Request) { fmt.Fprintf( 阅读全文
posted @ 2021-08-20 15:08 salami_china 阅读(30) 评论(0) 推荐(0) 编辑
摘要: top运行时按E切换,每次切换转换率为1000,切换的单位为 k,m,g,t,p 阅读全文
posted @ 2021-08-20 14:27 salami_china 阅读(2412) 评论(0) 推荐(1) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 53 下一页