Golang string []byte互转
总是忘记,Golang设计的不好的地方,对[]byte无好感
hello := "123"
bytehello :=[]byte(hello)
strhello := string(bytehell0)
Golang …
专注于数字孪生及工业软件SaaS的研发
总是忘记,Golang设计的不好的地方,对[]byte无好感
hello := "123"
bytehello :=[]byte(hello)
strhello := string(bytehell0)
Golang …
###分布式的实时消息平台NSQ
http://nsq.io/deployment/installing.html
http://wiki.jikexueyuan.com/project/nsq-guide/nsqadmin.html
###开源分布式文件系统 SeaweedFS …
###分布式的实时消息平台NSQ
http://nsq.io/deployment/installing.html
http://wiki.jikexueyuan.com/project/nsq-guide/nsqadmin.html
###开源分布式文件系统 SeaweedFS …
etcd 是一个应用在分布式环境下的 key/value 存储服务
https://github.com/coreos/etcd https://coreos.com/etcd/docs/latest/libraries-and-tools.html …
除了传统的AB,有一个Go写的好工具叫boom. 例子: boom -n 1000 -c 100 https://google.com
slice的循环的坑 当迭代时 range 关键字会返回两个值,第一个是索引值,第二个是索引位置值的拷贝。 注意:返回的是值的拷贝而不是引用,如果我们把值的地址作为指针使用,会得到一个错误,来看看为啥:
//付费笔数排行
var ss Sources
for _, v3 := range items { …
操作环境为:Golang 1.5版本,其他版本未验证
E:\gopro\src\tvdatatools>go install -a -v std cmd
runtime
errors
unicode/utf8
unicode …
学习GO中自定义类型的定义,接口和方法的写法
测试用例: https://github.com/panyingyun/gostudy/blob/master/testStack.go
package main
import (
"fmt" …