tech
Golang High-Performance Programming EP4 : reflect
Golang High-Performance Programming EP4 : reflect. reflect provides Go with the ability to dynamically obtain the types and values of objects at runtime an。
tech
Golang High-Performance Programming EP4 : reflect. reflect provides Go with the ability to dynamically obtain the types and values of objects at runtime an。
tech
Go高性能编程 EP4: 反射. reflect 为 Go 语言提供了运行时动态获取对象的类型和值以及动态创建对象的能力。反射可以帮助抽象和简化代码,提高开发效率。Go 语言标准库以及很多开源软件中都使用了 Go 语言的反射能力,例如用于序列化和反序列化的 json 、ORM 框架 gorm/xorm 等。本。
tech
Go高性能编程 EP6: 异步编程的技巧. Golang最大的使命就是简化异步编程,当我们遇到那种需要批量处理且耗时的操作时,传统的单线程执行就显得吃力,这时就会想到异步并行处理。本篇文章介绍一些Golang异步编程的技巧。 This article was first published in the Me。
tech
Golang High-Performance Programming EP3 : Memory Alignment. All examples in this article use a MacBook Pro M1, a 64-bit architecture CPU. This is the third。
tech
Go高性能编程EP3: 内存对齐. 本文写作所有的例子以 macbookpro M1 为例,该CPU为64位架构 本文是Go语言高性能编程第三篇,分析了为什么需要内存对齐,Go语言内存对齐的规则,以及实际例子中内存对齐的使用,最后分享了两个工具,帮助我们在开发过程中发现内存对齐问题。 This article。
tech
Golang High-Performance Programming EP2: Reduce The Size Of Executable Binary Files With upx. We all know that Golang has a significant feature: its compil。
tech
探索如何通过使用UPX和Go编译器选项来显著减小Go语言编译生成的可执行二进制文件的大小。了解去除调试信息的技巧,以及UPX的压缩效果,将原本6.5M的文件压缩至1.4M,节省高达80%的存储空间。本文为追求高效和精简的Go程序员提供实用方法,掌握优化技巧,提升开发效率!
tech
Go is a statically typed compiled language designed to be concise and efficient. While Go is not a purely object-oriented language, we can still use design patterns to improve code readability and maintainability. Today, I will introduce a common design pattern: the Decorator pattern. What is the Decorator Pattern?
tech
In the previous article, I briefly introduced the composite pattern in Go, which was explained in a simple manner. We understood that Go can achieve polymorphism in object-oriented programming through composition. In this article, let's learn about Inversion of Control (IoC). Inversion of Control is a software
tech
Go is not a fully object-oriented language; some object-oriented patterns are unsuitable. However, Go has developed its own set of patterns over the years. Today, I would like to introduce a familiar pattern: the Functional Options Pattern. What is the Functional Options Pattern? Go does not have constructors
tech
Go language has three types of pointers. In the normal development process, we only encounter the ordinary pointer.
tech
Advanced Debugging Tips for the Go Language. Last time we shared the method of debugging Go code using assembly language . Assembly language allows us to e。