TAG

Golang

Master Golang JSON Omitempty: No More Rookie Errors

Explore the dynamic capabilities of Golang JSON Omitempty to revolutionize your data structuring and serialization. Dive deep into expert techniques, unlocking …

By tuannguyen · 9 min read · GOLANG Solutions

Golang Print Struct Variables [SOLVED]

Golang print struct variables on console using 4 different methods. Method 1: Using fmt package. Method 2: Using json package. Method 2: Using go-spew package. …

By tuannguyen · 4 min read · GOLANG Solutions

How to sort array of ints in Golang [SOLVED]

Golang sort array of ints using 3 different examples. Example 1: Convert to int slice and then use the Ints() function. Example 2: Using Slice() function to …

By tuannguyen · 4 min read · GOLANG Solutions

Golang Queue Implementation

We can use slices, lists, or channels for golang queue implementation

By tuannguyen · 4 min read · GO

Using golang constants in struct [SOLVED]

In general, golang does not allow declaring a constant struct and constant within a struct. But we can use a custom function to perform this purpose

By tuannguyen · 3 min read · GOLANG Solutions