package clusterinfoimport ( "encoding/json" "fmt" "sort" "strings" "time" "github.com/blang/semver" "github.com/nsqio/nsq/internal/quantile")type Prod... ...
分类:
其他好文 时间:
2017-08-31 12:58:46
阅读次数:
233
package clusterinfoimport ( "fmt" "net" "net/url" "sort" "strconv" "strings" "sync" "github.com/blang/semver" "github.com/nsqio/nsq/internal/http_api"... ...
分类:
其他好文 时间:
2017-08-31 12:57:25
阅读次数:
142
package appimport ( "fmt" "log" "sort" "strconv" "strings")//这个文件相关的代码不需要解释了吧!!!type FloatArray []float64func (a *FloatArray) Set(param string) error ... ...
分类:
其他好文 时间:
2017-08-31 12:54:17
阅读次数:
197
package appimport ( "strings")type StringArray []stringfunc (a *StringArray) Set(s string) error { *a = append(*a, s) return nil}func (a *StringArray)... ...
分类:
其他好文 时间:
2017-08-31 12:47:01
阅读次数:
124
package nsqdimport ( "crypto/tls" "crypto/x509" "encoding/json" "errors" "fmt" "io/ioutil" "math/rand" "net" "os" "path" "runtime" "strings" "sync" "s... ...
分类:
其他好文 时间:
2017-08-31 12:41:31
阅读次数:
192
package nsqlookupdimport ( "bufio" "encoding/binary" "encoding/json" "fmt" "io" "log" "net" "os" "strings" "sync/atomic" "time" "github.com/nsqio/nsq/... ...
分类:
数据库 时间:
2017-08-31 12:33:38
阅读次数:
222
package http_apiimport ( "crypto/tls" "encoding/json" "fmt" "io/ioutil" "net" "net/http" "net/url" "strconv" "strings" "time")type deadlinedConn struc... ...
一、升级前测试:1、查看系统版本:#cat/etc/redhat-release2、查看默认的gcc版本:#gcc--version3、查看默认动态库:#strings/usr/lib64/libstdc++.so.6|grepGLIBC4、不支持c++11的新特性:尝试写一个C++11特性的程序段tryCpp11.cc,使用了shared_ptr#vim/tmp/tryCpp11.cc#inc..
分类:
其他好文 时间:
2017-08-31 11:04:07
阅读次数:
1570
https://leetcode.com/problems/add-binary/description/ Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Re ...
分类:
其他好文 时间:
2017-08-30 20:45:23
阅读次数:
164
package clientv3import ( "fmt" "strings" "github.com/coreos/etcd/auth/authpb" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" "golang.org/x/net/co... ...
分类:
其他好文 时间:
2017-08-30 14:18:34
阅读次数:
137