golang
SHIXINGYA
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
golang 字符串赋值
func ResetValue(s *string, newValue string) {sByte := []byte(*s)for i := 0; i < len(sByte); i++ {sByte[i] = ' '}*s = newValue}func main() {oldVal := "旧值"ResetValue(&oldVal, "新值")fmt....原创 2019-02-11 14:22:21 · 7180 阅读 · 0 评论 -
Golang下载文件最优实现
下载文件过程中 生成XXX.download中间文件,下载完成后再重命名为待下载文件XXXpackage mainimport ( "crypto/md5" "errors" "fmt" "io" "io/ioutil" "net/http" "os" "strconv" "time")func IsFileExis...原创 2019-04-01 16:55:10 · 13188 阅读 · 1 评论 -
利用thrift rpc进行C++与Go的通信[扩展]
参考https://www.cnblogs.com/pluse/p/7761365.html利用thrift rpc进行C++与Go的通信的过程中,报错# testRPCX.\main.go:4:2: imported and not used: "context".\main.go:29:43: not enough arguments in call to client.Ge...原创 2019-04-17 21:11:42 · 570 阅读 · 0 评论
分享