Search category: Go

Wrench icon

Idiomatic Go Set

Notes on implementing a Set while migrating from JavaScript to Go — using maps to represent Sets since Go lacks a native Set.

Data icon

What is Marshal in Go?

Revisiting serialization/deserialization in Go and the origin of "Marshal", building on my earlier post about struct tags and reflect.

Tag Icon

Go Struct Tag and reflect

When interacting with MongoDB, I encountered unfamiliar syntax in Struct fields. This article explores why Go Struct Tags exist and the problems they solve.

Array Symbol

Slicce vs Array in Go

In Go, there are two common data structures for "sequence data": Array and Slice. They are similar in syntax, but the differences in behavior.