Tony Bai

GoCN Community Go Reading Club Phase 2: “The Road to Go Language Improvement”

Permalink to this article – https://ift.tt/m7ZHtqA This article is a transcript of the live broadcast of the second issue of “The Road to Go Language Improvement” of my Go Reading Club in the GoCN community on June 26, 2022. This article has reorganized and revised the content of the live broadcast for friends who like …

GoCN Community Go Reading Club Phase 2: “The Road to Go Language Improvement” Read More »

Prometheus can’t collect data! It’s actually the pot of the Prometheus client package

Permalink to this article – https://ift.tt/2dMEioD Before the new generation of observation facilities based on eBPF is immature, we adopted the industry-proven Prometheus + Grafana solution to collect node and application metrics information . As we all know, such a solution is an intrusive solution to the application, that is, the client package that collects …

Prometheus can’t collect data! It’s actually the pot of the Prometheus client package Read More »

Go 1.19 New Features Preview

Permalink to this article – https://ift.tt/odK08rD On May 7, 2022, US time, the development branch of Go 1.19 entered the new feature freeze phase, that is, only bugs could be fixed, and no new features could be added to Go 1.19. Since the previous version of Go 1.18 had major changes due to the introduction …

Go 1.19 New Features Preview Read More »

Teach you how to implement a DSL language using ANTLR and Go (Part 5): Error handling

Permalink to this article – https://ift.tt/tv1Vah4 Whether it is a client application or a cloud application, one thing that must be done well in order to be used in a production environment is error handling . In previous articles in this series, we designed grammars and grammars , built and validated semantic models , but …

Teach you how to implement a DSL language using ANTLR and Go (Part 5): Error handling Read More »

Hands-on teaching you to implement a DSL language using ANTLR and Go (Part 4): Assembling the semantic model and testing the DSL

Permalink to this article – https://ift.tt/VTsyotH In the previous article , we established a complete semantic model for the DSL. We are still one step away from the actual running of the grammar example of the DSL, which is to extract information (reverse Polish style) based on the syntax tree, assemble the semantic model, and …

Hands-on teaching you to implement a DSL language using ANTLR and Go (Part 4): Assembling the semantic model and testing the DSL Read More »

Hands-on teaching you to implement a DSL language using ANTLR and Go (Part 3): Building and validating semantic models

Permalink to this article – https://ift.tt/NJpYgi0 In the previous series of articles, we designed a DSL called Tdat for meteorologists, wrote Tdat grammar using ANTLR grammar rules, generated Tdat parser code based on the grammar, and preliminarily verified the grammar Correctness , Tdat can successfully parse the Tdat grammar code sample we wrote into an …

Hands-on teaching you to implement a DSL language using ANTLR and Go (Part 3): Building and validating semantic models Read More »

Rack your brain to help you understand the essence of the method and choose the correct receiver type

Permalink to this article – https://ift.tt/pQlZaj0 Although the Go language does not support classic object-oriented syntax elements, such as: classes, objects, inheritance, etc., the Go language also has methods. Compared with functions, methods in Go language only have one more parameter in the declaration form, which Go calls the receiver parameter , and the receiver …

Rack your brain to help you understand the essence of the method and choose the correct receiver type Read More »

World Book Day: Bringing you closer to Go programming thinking

Permalink to this article – https://ift.tt/GLDTkd1 After more than ten years of evolution and development, the Go language has had millions of fans around the world. Among these developers, in addition to some new programming language beginners, more Developers turned from the programming language camp. Since the Go language is easy to use, everyone quickly …

World Book Day: Bringing you closer to Go programming thinking Read More »