Tag

Go 1.18

0 views collected around this technical thread.

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.

AlgorithmData StructureGo
0 likes · 18 min read
Implementation and Optimization of Generic Skip List in Go (stl4go)
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 TestingGo 1.18Workspaces
0 likes · 22 min read
Exploring Go 1.18's Major New Features: Generics, Fuzzing, and Workspaces