随笔分类 -  golang

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要:疑问: All `g`, `m`, and `p` objects are heap allocated, but are never freed, so their memory remains type stable. As a result, the runtime can avoid wri 阅读全文
posted @ 2022-04-12 09:22 papering 阅读(231) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/pZkOQUPvAXgZb0rho9s6vg Go应用单元测试实践 原创 蜂翅 阿里技术 2022-04-08 08:00 收录于话题 #单元测试10个 #go1个 一 背景 高德打车运营的应用大多基于go进行开发的,我们希望在预集成环境下,当研 阅读全文
posted @ 2022-04-08 09:07 papering 阅读(191) 评论(0) 推荐(0)
摘要:How Go Mitigates Supply Chain Attacks - The Go Programming Language https://go.dev/blog/supply-chain 阅读全文
posted @ 2022-04-01 10:54 papering 阅读(35) 评论(0) 推荐(0)
摘要:并发编程,为什么选Go? https://mp.weixin.qq.com/s/IVAM7mejrUjp3Ol78S6KIw 并发编程,为什么选Go? 吕吕 云加社区 2022-03-30 12:09 导语 | 代码的稳健、可读和高效是我们每一个coder的共同追求。本文将结合Go语言特性,为书写高 阅读全文
posted @ 2022-03-31 09:27 papering 阅读(156) 评论(0) 推荐(0)
摘要:The Go Programming Language Specification - The Go Programming Language https://golang.google.cn/ref/spec#Numeric_types 阅读全文
posted @ 2022-03-22 10:46 papering 阅读(39) 评论(0) 推荐(0)
摘要:Tutorial: Getting started with fuzzing - The Go Programming Language https://go.dev/doc/tutorial/fuzz 阅读全文
posted @ 2022-03-16 14:52 papering 阅读(35) 评论(0) 推荐(0)
摘要:Tutorial: Getting started with generics - The Go Programming Language https://go.dev/doc/tutorial/generics 阅读全文
posted @ 2022-03-16 14:52 papering 阅读(53) 评论(0) 推荐(0)
摘要:Go 1.18 is released! - The Go Programming Language https://go.dev/blog/go1.18 Go 1.18 is released! The Go Team15 March 2022 Today the Go team is thril 阅读全文
posted @ 2022-03-16 14:51 papering 阅读(555) 评论(0) 推荐(0)
摘要:package runtime import "runtime/internal/sys" // Caller reports file and line number information about function invocations on // the calling goroutin 阅读全文
posted @ 2022-03-15 17:59 papering 阅读(60) 评论(0) 推荐(0)
摘要:package main import ( "encoding/json" ) type T struct { K int32 V string Children []T } func convert() { var target T err := json.Unmarshal([]byte(jso 阅读全文
posted @ 2022-03-07 10:08 papering 阅读(122) 评论(0) 推荐(0)
摘要:package test import ( "encoding/base64" "io" "os" "regexp" "strings" ) // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAAjCAYAAADMibkBAAAAAXNSR0 阅读全文
posted @ 2022-03-05 19:49 papering 阅读(208) 评论(0) 推荐(0)
摘要:注意: 编码实现每个小时的第4、8分钟,依次打印一次a、b,例如:10:04打印a,10:08打印b, 阅读全文
posted @ 2022-02-27 10:39 papering 阅读(43) 评论(0) 推荐(0)
摘要:func BeUniqueSlice(i []int32) []int32 { // TODO l := []int32{} m := map[int32]struct{}{} for _, v := range i { m[v] = struct{}{} } for k, _ := range m 阅读全文
posted @ 2022-02-24 14:02 papering 阅读(473) 评论(0) 推荐(0)
摘要:a 阅读全文
posted @ 2022-02-16 22:32 papering 阅读(26) 评论(0) 推荐(0)
摘要:Uid int `json:"-"` UserInfo User bs, _ := json.Marshal(a_) var out bytes.Buffer json.Indent(&out, bs, "", "\t") iStr := out.String() 翻译 搜索 复制 阅读全文
posted @ 2022-02-16 18:28 papering 阅读(107) 评论(0) 推荐(0)
摘要:Golang 的 “omitempty” 关键字略解 - 简书 https://www.jianshu.com/p/a2ed0d23d1b0 阅读全文
posted @ 2022-02-15 21:39 papering 阅读(92) 评论(0) 推荐(0)
摘要:Golang性能调优实战 https://mp.weixin.qq.com/s/r-TsjEpOc_s8k-MMypxyvA 阅读全文
posted @ 2022-02-10 18:25 papering 阅读(63) 评论(0) 推荐(0)
摘要:Golang如何把json中的unicode编码转换成中文字符? - 知乎 https://www.zhihu.com/question/330544039 import ( "strconv" "strings" ) func UnescapeUnicode(raw []byte) (string 阅读全文
posted @ 2022-01-30 17:56 papering 阅读(61) 评论(0) 推荐(0)
摘要:GitHub - tidwall/gjson: Get JSON values quickly - JSON parser for Go https://github.com/tidwall/gjson import jsons ="[[['o3', 'pm10', 'pm2_5'], ['pm2_ 阅读全文
posted @ 2022-01-29 22:04 papering 阅读(48) 评论(0) 推荐(0)
摘要:解读Go语言的2021:稳定为王-InfoQ https://www.infoq.cn/article/eMLshYbKJTEIEiMVzwBJ 2.4 标准库 下面,我们来简要地说一下 Go 语言标准库中的变化。其中大大小小的变更有很多,但从整体来看它们都不是最关键的。因此,作者只会在这里提及那几 阅读全文
posted @ 2022-01-27 17:15 papering 阅读(180) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页