摘要: _, _, ch, err := m.ZkConn.ChildrenW(node) if err != nil { x := fmt.Sprintf("%s", err) if strings.Contains(x, "node does not exist"){ log.Error(fmt.Sprintf("node %s error: ... 阅读全文
posted @ 2017-09-06 17:46 众里寻,阑珊处 阅读(5978) 评论(0) 推荐(0) 编辑
摘要: #string到int int,err:=strconv.Atoi(string) #string到int64 int64, err := strconv.ParseInt(string, 10, 64) #int到string string:=strconv.Itoa(int) #int64到string string:=strconv.FormatInt(int6... 阅读全文
posted @ 2017-09-06 17:44 众里寻,阑珊处 阅读(695) 评论(0) 推荐(0) 编辑
返回顶部