CATEGORY

GOLANG Solutions

Declare a constant array in Golang [SOLVED]

Slice or const array are not supported in Go. It is thus because Go computes constant values at compilation time. Slices or arrays are always assessed in- …

By tuannguyen · 3 min read · GOLANG Solutions

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