tech
Golang High-Performance Programming EP3 : Memory Alignment
Why Memory Alignment is Crucial in Go High-Performance Programming
tech
Why Memory Alignment is Crucial in Go High-Performance Programming
tech
本文深入探讨Go语言中的内存对齐技术,解释其对性能和平台兼容性的影响,结合实例展示如何手动调整结构体以优化内存使用,并推荐实用工具帮助开发者解决内存对齐问题。
tech
Practical Tips and Conclusions on Reducing Go Binary Size
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
Learning to debug makes you a better programmer.
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
talk
Ensuring resilience in all endpoints is crucial for the successful implementation of defense strategies.
tech
After writing tons of code and implementing hundreds of interfaces, you finally successfully managed to deploy your application. However, you soon discover that the performance could be better. What a nightmare! This article was first published in the Medium MPP plan. If you are a Medium user, please follow me