会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
junqiang_china
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
53
下一页
2021年10月19日
healthcheck 用于Go应用易于使用可扩展的健康检查库
摘要: 仓库: https://github.com/heptiolabs/healthcheck.git https://pkg.go.dev/github.com/heptiolabs/healthcheck#section-readme healthcheck 实现了一个开箱即用的Kubernetes
阅读全文
posted @ 2021-10-19 10:42 salami_china
阅读(470)
评论(0)
推荐(0)
2021年10月15日
Ncat: socket: Address family not supported by protocol QUITTING
摘要: 问题:Ncat: socket: Address family not supported by protocol QUITTING 原因:使用ipv4, 默认会使用v4 v6, 如果v6禁用了,就会出现这个错误 解决:nc -lk4 8080
阅读全文
posted @ 2021-10-15 19:53 salami_china
阅读(1377)
评论(0)
推荐(0)
2021年9月29日
kubernetes 设备插件
摘要: kubernetes 官网链接: https://v1-18.docs.kubernetes.io/zh/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/ 项目参考: https://github.com/NVID
阅读全文
posted @ 2021-09-29 12:16 salami_china
阅读(160)
评论(0)
推荐(0)
golang signal.Notify 信号,如何优雅的退出
摘要: 参考链接:https://www.cnblogs.com/landv/p/13139127.html Notify函数让signal包将输入信号转发到c。如果没有列出要传递的信号,会将所有输入信号传递到c;否则只传递列出的输入信号。 signal包不会为了向c发送信息而阻塞(就是说如果发送时c阻塞了
阅读全文
posted @ 2021-09-29 11:49 salami_china
阅读(257)
评论(0)
推荐(0)
golang 通过fsnotify监控文件
摘要: 详细链接:https://www.cnblogs.com/jkko123/p/7256927.html package main; import ( "github.com/fsnotify/fsnotify" "log" "fmt" ) func main() { //创建一个监控对象 watch
阅读全文
posted @ 2021-09-29 11:44 salami_china
阅读(312)
评论(0)
推荐(0)
Golang中基础的命令行模块urfave/cli的用法说明
摘要: 详细信息参考:https://www.jb51.net/article/202380.htm package main import ( "github.com/urfave/cli" "os" "log" "fmt" ) func main() { //实例化一个命令行程序 oApp := cli
阅读全文
posted @ 2021-09-29 11:32 salami_china
阅读(1065)
评论(0)
推荐(0)
fatal: unable to access 'xxx': Encountered end of file
摘要: 问题:git pull 下载失败 现象: git clone https://github.com/NVIDIA/k8s-device-plugin.git fatal: unable to access 'xxx': Encountered end of file 解决:https改成git gi
阅读全文
posted @ 2021-09-29 10:39 salami_china
阅读(2961)
评论(0)
推荐(0)
2021年9月28日
client-go 和 golang 源码中的技巧
摘要: 参考链接:https://www.cnblogs.com/charlieroro/p/11112526.html 1.实现了对golang map的key的处理,如计算交集,并集等。 package main import ( "fmt" "k8s.io/apimachinery/pkg/util/
阅读全文
posted @ 2021-09-28 19:58 salami_china
阅读(333)
评论(0)
推荐(0)
2021年9月27日
Golang之wait.Until 简单测试用例
摘要: 原文链接:https://studygolang.com/articles/13441?fr=sidebar package main import ( "fmt" "k8s.io/apimachinery/pkg/util/wait" "time" ) type stop struct { } f
阅读全文
posted @ 2021-09-27 16:37 salami_china
阅读(518)
评论(0)
推荐(0)
2021年9月26日
go viper 库
摘要: 参考链接:https://studygolang.com/articles/26215?fr=sidebar viper 是一个配置解决方案,拥有丰富的特性: 支持 JSON/TOML/YAML/HCL/envfile/Java properties 等多种格式的配置文件; 可以设置监听配置文件的修
阅读全文
posted @ 2021-09-26 15:18 salami_china
阅读(154)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
53
下一页
公告