随笔分类 -  golang

上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要:高德Go生态的服务稳定性建设|性能优化的实战总结 https://mp.weixin.qq.com/s/UHaCLhiIyLYVrba-nEUONA 高德Go生态的服务稳定性建设|性能优化的实战总结 原创 阳迪、联想、君清 阿里开发者 2023-03-06 09:00 发表于浙江 阿里妹导读 目前g 阅读全文
posted @ 2023-03-06 15:29 papering 阅读(201) 评论(0) 推荐(0)
摘要:Go Scheduler 的 GMP 模型 https://mp.weixin.qq.com/s/1CY3E5daJ5U42orVwzCpaw 写在前面 Go 为了自身 goroutine 执行和调度的效率,自身在 runtime 中实现了一套 goroutine 的调度器,下面通过一段简单的代码展 阅读全文
posted @ 2023-03-01 16:43 papering 阅读(44) 评论(0) 推荐(0)
摘要:golang的字符类型(byte和rune) 字符串索引 strcmp_百度百科 https://baike.baidu.com/item/strcmp/5495571?fr=aladdin 当s1<s2时,返回为负数; 当s1=s2时,返回值= 0; 当s1>s2时,返回正数。 [2] 即:两个字 阅读全文
posted @ 2022-12-22 23:40 papering 阅读(91) 评论(0) 推荐(0)
摘要:func largestMerge(s, t string) string { n := len(s) sa := *(*[]int32)(unsafe.Pointer(reflect.ValueOf(suffixarray.New([]byte(s + "#" + t))).Elem().Fiel 阅读全文
posted @ 2022-12-22 21:12 papering 阅读(19) 评论(0) 推荐(0)
摘要:Golang异步编程方式和技巧 https://mp.weixin.qq.com/s/PuNu65ggHyB6jxRqhbN_VQ Golang基于多线程、协程实现,与生俱来适合异步编程,当我们遇到那种需要批量处理且耗时的操作时,传统的线性执行就显得吃力,这时就会想到异步并行处理。下面介绍一些异步编 阅读全文
posted @ 2022-12-14 10:03 papering 阅读(29) 评论(0) 推荐(0)
摘要:WARNING: DATA RACERead at 0x00c00061c148 by goroutine 158: 常见情形: ok:=123 go func(){ ok++ }() 阅读全文
posted @ 2022-12-13 17:22 papering 阅读(92) 评论(0) 推荐(0)
摘要:race: limit on 8128 simultaneously alive goroutines is exceeded, dying 阅读全文
posted @ 2022-12-12 09:05 papering 阅读(182) 评论(0) 推荐(0)
摘要:type comparable interface{ comparable } Go\src\builtin\builtin.go 阅读全文
posted @ 2022-12-02 17:25 papering 阅读(35) 评论(0) 推荐(0)
摘要:区分 Protobuf 中缺失值和默认值 - 知乎 https://zhuanlan.zhihu.com/p/46603988 Since protobuf release 3.15, proto3 supports using the optional keyword (just as in pr 阅读全文
posted @ 2022-11-30 16:14 papering 阅读(1386) 评论(0) 推荐(1)
摘要:小结: 1、 在 Golang 中并不是所有异常都能够被 recover 捕获到: 当异常是通过 runtime.panic() 抛出时,能够被 recover 方法捕获; 当异常是通过 runtime.throw() 或者 runtime.fatal() 抛出时,不能够被 recover 方法捕获 阅读全文
posted @ 2022-11-30 09:19 papering 阅读(179) 评论(0) 推荐(0)
摘要:从鹅厂实例出发!分析Go Channel底层原理 https://mp.weixin.qq.com/s/uWhmvBk_MN23RjmfjkxqeQ 搜索 复制 阅读全文
posted @ 2022-11-28 18:55 papering 阅读(14) 评论(0) 推荐(0)
摘要:unipdf/core.go at master · unidoc/unipdf · GitHub https://github.com/unidoc/unipdf/blob/master/core/core.go 搜索 复制 阅读全文
posted @ 2022-11-04 14:23 papering 阅读(119) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/VS7DZg9qb_QmqAKqm_zc-Q Go语言躲坑经验总结 原创 欢迎关注的 百度Geek说 2022-11-02 18:00 发表于上海 本文收集一些使用Go开发过程中非常容易踩坑的case,所有的case都有具体的代码示例,以及针对的 阅读全文
posted @ 2022-11-03 21:24 papering 阅读(33) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s/xrFqTVJbwc-iST2D9xPQ3w 一种基于字典传递的Go泛型翻译方法 原创 宋林海 字节跳动技术质量 2022-11-03 17:00 发表于上海 来自牛津大学(Nobuko Yoshida教授团队)和宾州州立大学(Linhai So 阅读全文
posted @ 2022-11-03 21:22 papering 阅读(120) 评论(0) 推荐(0)
摘要:源码 time.C 阅读全文
posted @ 2022-11-02 20:04 papering 阅读(63) 评论(0) 推荐(0)
摘要:// Cron keeps track of any number of entries, invoking the associated func as // specified by the schedule. It may be started, stopped, and the entrie 阅读全文
posted @ 2022-11-01 17:50 papering 阅读(42) 评论(0) 推荐(0)
摘要:程序crash后生成的coredump文件 搜索 复制 阅读全文
posted @ 2022-10-18 18:01 papering 阅读(13) 评论(0) 推荐(0)
摘要:Go\src\runtime\debug.go // NumGoroutine returns the number of goroutines that currently exist. func NumGoroutine() int { return int(gcount()) } 搜索 复制 阅读全文
posted @ 2022-10-18 17:38 papering 阅读(26) 评论(0) 推荐(0)
摘要:软件开发|使用 Golang 的交叉编译 https://linux.cn/article-13385-1.html Go 交叉编译 (跨平台编译) - 知乎 https://zhuanlan.zhihu.com/p/98215258 使用 Golang 的交叉编译 作者: Gaurav Kamat 阅读全文
posted @ 2022-10-11 10:27 papering 阅读(267) 评论(0) 推荐(0)
摘要:os.Exit(123) 阅读全文
posted @ 2022-10-11 09:27 papering 阅读(15) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 17 下一页