fmt

Posted by 夏泽民

原型



Service Mesh

Posted by 夏泽民

A Service Mesh is a dedicated infrastructure layer for handling service-to-service communication. It’s responsible for the reliable delivery of requests through the complex topology of services that comprise a modern, cloud native application. In practice, the Service Mesh is typically implemented as an array of lightweight network proxies that are deployed alongside application code, without the application needing to be aware.



如何写出高质量代码

Posted by 夏泽民

https://github.com/golang/go/wiki/CodeReviewComments Go 语言比较常见并且使用广泛的代码规范就是官方提供的 Go Code Review Comments,无论你是短期还是长期使用 Go 语言编程,都应该至少完整地阅读一遍这个官方的代码规范指南,它既是我们在写代码时应该遵守的规则,也是在代码审查时需要注意的规范。



victim cache

Posted by 夏泽民

Go 1.13持续对 sync.Pool进行了改进,这里我们有两个简单的灵魂拷问:



ast

Posted by 夏泽民

许多自动化代码生成工具都离不开语法树分析,例如goimport,gomock,wire等项目都离不开语法树分析。基于语法树分析,可以实现许多有趣实用的工具。 许多自动化代码生成工具都离不开语法树分析,例如goimport,gomock,wire等项目都离不开语法树分析。基于语法树分析,可以实现许多有趣实用的工具。本篇将结合示例,展示如何基于ast标准包操作语法树。 本篇中的代码的完整示例可以在这里找到:ast-example Quick Start 首先我们看下语法树长什么样子,以下代码将打印./demo.go文件的语法树: package main



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required