
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
golang性能测试指定运行函数
有时候我们修改了配置 json 或者 yaml 文件,需要校验下文件格式是否正确源码package mainimport ("flag""fmt""github.com/ChengjinWu/gojson""github.com/goccy/go-yaml""io/ioutil""os""path/filepath")// GOOS=linux go build-x -v -ldflags "-s
crontab1 crontab 规则,设置脚本定时时间我的开源地址Field nameMandatory?Allowed valuesAllowed special characters------------------------------------------------------------SecondsNo0-59* / , -MinutesYes
// 使用chan实现互斥锁type Mutex struct {ch chan struct{}}// 使用锁需要初始化func NewMutex() *Mutex {mu := &Mutex{make(chan struct{}, 1)}mu.ch <- struct{}{}return mu}// 请求锁,直到获取到func (m *Mutex) Lock() {<-m.
我几年前提交的issues。

参数· net.Dialer.Timeout 限制创建一个TCP连接使用的时间(如果需要一个新的链接)· http.Transport.TLSHandshakeTimeout 限制TLS握手使用的时间· http.Transport.ResponseHeaderTimeout 限制读取响应报文头使用的时间· http.Transport.ExpectContinueTimeout 限制客户端在发送
1.hbase知识进入shell命令: /usr/local/hbase/bin/hbase shellcreate 'ulive_test', 'i'// 创建一个列族 ihelp // 查看所有命令list // 查看所有表describe 'student' // 查看表结构// 删除表之前需要 disabledisable 'student'drop 'student'命名空间list_n
来自 https://segmentfault.com/a/1190000019790072
使用关键字 // Deprecated使用关键字 // Deprecated: use 新的函数效果如下使用如下








