Tagged articles
6 articles
Page 1 of 1
Baidu Geek Talk
Baidu Geek Talk
Feb 1, 2023 · Backend Development

Practical Generic Programming Techniques in Go Language

This article explains Go 1.18 generics—type parameters, type‑set interfaces, and inference—through six practical examples including a universal sorting function, generic Append, heap, sync.Pool and sync.Map wrappers, showing how generics reduce code size, improve readability, and enhance type safety.

Generic containersGo 1.18Go generics
0 likes · 22 min read
Practical Generic Programming Techniques in Go Language
Tencent Cloud Developer
Tencent Cloud Developer
Dec 30, 2022 · Backend Development

Implementation and Optimization of Generic Skip List in Go (stl4go)

stl4go provides a generic Go 1.18 container library that implements an optimized skip‑list‑based ordered map, using adaptive levels, efficient random‑level generation, type‑specific paths, and cache‑friendly node structures to achieve near‑C++ performance, surpassing existing Go generic collections.

Data StructureGenericsGo
0 likes · 18 min read
Implementation and Optimization of Generic Skip List in Go (stl4go)
MaGe Linux Operations
MaGe Linux Operations
Nov 15, 2022 · Backend Development

Go 1.18 & 1.19 Highlights: Generics, Fuzzing, Workspaces Explained

The article reviews Go’s 13‑year journey, focusing on the major 2022 releases Go 1.18 and Go 1.19, and explains new features such as generics, fuzz testing, workspaces, documentation improvements, memory limits, VS Code extensions, security tools, and the team’s future roadmap.

GenericsGoGo 1.18
0 likes · 4 min read
Go 1.18 & 1.19 Highlights: Generics, Fuzzing, Workspaces Explained
Tencent Cloud Developer
Tencent Cloud Developer
Sep 1, 2022 · Backend Development

Exploring Go 1.18's Major New Features: Generics, Fuzzing, and Workspaces

Exploring Go 1.18, the article walks readers through its three flagship additions—generics, fuzzing, and workspaces—detailing installation, underlying implementation concepts, practical code examples, and how each feature enhances type safety, automated testing, and multi‑module dependency management for modern backend development.

Automated TestingGenericsGo 1.18
0 likes · 22 min read
Exploring Go 1.18's Major New Features: Generics, Fuzzing, and Workspaces
Tencent Cloud Developer
Tencent Cloud Developer
Jun 21, 2022 · Backend Development

Unlock Go 1.18 Generics: A Complete Guide with Real‑World Code

This article provides a thorough, step‑by‑step exploration of Go 1.18 generics, explaining what generics are, their advantages and drawbacks, how Go implements them compared with other languages, and offering detailed examples of generic variables, functions, methods, interfaces, type constraints, and best‑practice patterns for developers.

Generic FunctionsGenericsGo
0 likes · 35 min read
Unlock Go 1.18 Generics: A Complete Guide with Real‑World Code
21CTO
21CTO
Mar 16, 2022 · Backend Development

What’s New in Go 1.18? Fuzz Testing, Generics, and 20% Performance Boost

Google’s Go 1.18 release introduces native fuzz testing, generics support, module workspaces, and up to 20% performance gains on ARM64 and Apple M1, enhancing security and productivity for developers while reinforcing Go’s pivotal role in cloud‑native projects like Kubernetes and Docker.

GenericsGoGo 1.18
0 likes · 5 min read
What’s New in Go 1.18? Fuzz Testing, Generics, and 20% Performance Boost