Tagged articles
3 articles
Page 1 of 1
FunTester
FunTester
Mar 10, 2025 · Backend Development

Avoid These Common Go String Mistakes That Hurt Performance

This article examines six frequent Go string pitfalls—including misuse of rune, incorrect iteration, inefficient concatenation, unnecessary conversions, substring memory leaks, and improper trim functions—explaining their impact, demonstrating flawed code, and providing optimized examples to improve correctness and performance.

BackendGoStrings
0 likes · 13 min read
Avoid These Common Go String Mistakes That Hurt Performance
MaGe Linux Operations
MaGe Linux Operations
Oct 29, 2022 · Backend Development

How to Build a Go Trie for Real‑Time Sensitive Word Filtering

This article demonstrates how to implement a sensitive‑word detection system in Go using a prefix‑tree (Trie), covering brute‑force, regex, and optimized rune‑based methods, plus special‑character filtering, pinyin support, and complete source code examples.

GoText FilteringTrie
0 likes · 19 min read
How to Build a Go Trie for Real‑Time Sensitive Word Filtering