tech
Golang High-Performance Programming EP3 : Memory Alignment
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
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。
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
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程序员提供实用方法,掌握优化技巧,提升开发效率!
huizhou92’s Newsletter-2024–26. It’s hard to imagine, but this is my 100th article. I have written 100 articles since January, and it has been an unforgett。
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。
tech
gRPC 是Google开发的一个高性能RPC框架,gRPC 默认内置了两种认证方式: * SSL/TLS 认证方式 * 基于 Token 的认证方式 没有启用证书的gRPC服务和客户端进行的是明文通信,信息面临被任何第三方监听的风险。为了保证gRPC通信不被第三方监听、篡改或伪造,可以对服务器启动TLS加密特性。 从 go 1.15 版本开始废弃 CommonName,因此推荐使用 SAN 证书。如果按照之前的步骤通过 OpenSSL 来生成密钥、CSR、证书,会出现这样的错误: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies on legacy Common Name