TAG

Golang

Golang array contains specific element or not? [SOLVED]

In this tutorial we have covered different examples to cover golang array contains elements. Use for loop to check for string, int or float64 element in array …

By tuannguyen · 5 min read · GOLANG Solutions

Golang length of map [2 Easy Methods]

use two different methods to get golang length of map. Using len() function or iterate over the map elements and count each occurence to get the length.

By tuannguyen · 2 min read · GO

Golang iterate over Array [2 Methods]

There are two possible methods in golang to iterate over an array using for loop with range function or with len(array) function

By tuannguyen · 4 min read · GO

Golang print type of an object [SOLVED]

In this tutorial we covered golang print type of an object using string formatting, go reflect package and type assertions

By tuannguyen · 4 min read · GOLANG Solutions

Golang remove duplicates from slice with Examples

remove duplicates in slice golang, find unique elements in array golang, golang count occurrences in slice, find duplicates in array golang, Remove duplcate …

By admin · 5 min read · GO