随笔分类 - golang
摘要:abtesting-sdk-go/utils/lru/lru.go at master · sensorsdata/abtesting-sdk-go https://github.com/sensorsdata/abtesting-sdk-go/blob/master/utils/lru/lru.g
阅读全文
摘要:Go 程序如何实现优雅退出?来看看 K8s 是怎么做的——上篇 https://mp.weixin.qq.com/s/UR6Rf1ewthI8qU3A7Szfzg Go 程序如何实现优雅退出?来看看 K8s 是怎么做的——下篇 https://mp.weixin.qq.com/s/oztrz9WfC
阅读全文
摘要:实践: 1、 1、编译CGO_ENABLED=0 GOARCH=arm GOOS=linux go build -o target-android 2、检查android目录 /data/local/tmp3、导入文件 adb push ./target-android /data/local/tm
阅读全文
摘要:go run -race main.go --action pubgo: -race requires cgo; enable cgo by setting CGO_ENABLED=1 not found: exec: "gcc": executable file not found in %PAT
阅读全文
摘要:github.com\eclipse\paho.mqtt.golang@v1.4.3\token.go // WaitTimeout implements the Token WaitTimeout method. func (b *baseToken) WaitTimeout(d time.Dur
阅读全文
摘要:import ( "runtime" "time" "github.com/shirou/gopsutil/v3/cpu" "github.com/shirou/gopsutil/v3/disk" "github.com/shirou/gopsutil/v3/mem" ) const ( B = 1
阅读全文
摘要:浅谈搜索展现层场景化技术-tanGo实践 https://mp.weixin.qq.com/s/nVy9SYRIaaqZWgOHKTMQ4Q introduction本文为搜索展现层相关技术,主线会先通过介绍搜索阿拉丁的产品形态,让读者初步了解什么是阿拉丁,及相关展现概念。之后会聚焦场景化产品,场景
阅读全文
摘要:常用性能优化手段及在风控系统中的应用 https://mp.weixin.qq.com/s/AVJENJFA6_vRopU4FLBpuw 翻译 搜索 复制
阅读全文
摘要:构建 Go 语言的动态插装 Agent https://mp.weixin.qq.com/s/vliRmGoGWJVJRUM3t0dLLA 翻译 搜索 复制
阅读全文
摘要:Golang中[]byte与string转换全解析 - 知乎 https://zhuanlan.zhihu.com/p/270626496 翻译 搜索 复制
阅读全文
摘要:golang如何操作二进制流呢? - SegmentFault 思否 https://segmentfault.com/q/1010000020192789 Go 高级编程——用 Gob 传输数据 - 知乎 https://zhuanlan.zhihu.com/p/621136653 12.11.
阅读全文
摘要:一次简单的golang栈溢出 https://mp.weixin.qq.com/s?__biz=MjM5NTc2MDYxMw==&mid=2458516910&idx=1&sn=aa8b791884ff0f2993235e84f04451c9&chksm=b18ecd2486f94432b1fa09
阅读全文
摘要:github.com\eclipse\paho.mqtt.golang@v1.4.3\options.go // CredentialsProvider allows the username and password to be updated // before reconnecting. It
阅读全文
摘要:revive:disable-line:var-naming 翻译 搜索 复制
阅读全文
摘要:从php5.6到golang1.19-文库App性能跃迁之路 https://mp.weixin.qq.com/s?__biz=Mzg5MjU0NTI5OQ==&mid=2247567095&idx=1&sn=815cb2987cddc3d9c8b6d0f29747510f&chksm=c03ff6
阅读全文
摘要:goroutine 泄漏。 13 | Channel:另辟蹊径,解决并发问题 https://time.geekbang.org/column/article/304188 翻译 搜索 复制
阅读全文
摘要:copy request body 请求体 流量录制 如何让 gin 正确多次读取 http request body 内容 - 掘金 https://juejin.cn/post/7182895543721394236 如何让 gin 正确读取 http response body 内容,并多次使
阅读全文
摘要:func BoolPtr(v bool) *bool { return &v } func StringPtr(v string) *string { return &v } func StringPtrs(vals []string) []*string { ptrs := make([]*str
阅读全文
摘要:实践 1、 python s="abc" s+="34" # OK print(s) s[0]="k" # TypeError: 'str' object does not support item assignment golang s := "abc" s += "456" fmt.Printl
阅读全文
摘要:type LinkNode struct { Val int Next *LinkNode } e := &LinkNode{} f := e fmt.Println(" &e=", &e, " &f=", &f) fmt.Println(" &e.Next=", &e.Next, " &f.Nex
阅读全文