[13] Results

Golang : How to reverse elements order in map ?

golang reverse-order element map

There is no built in function in Golang that allow you to reverse the elements order in a map, but….... read more

Golang : How to reverse slice or array elements order

golang reverse element order slicearray

In this short tutorial, we will learn how to reverse the elements order inside a slice or array. Taking the….... read more

Golang : Reverse text lines or flip line order example

golang reverse-line-order flip encrypt decrypt


You are given lines of text and you need to reverse the lines order before encrypting the text. Reversing….... read more

Golang : Sort and reverse sort a slice of integers

golang sort reverse-sort slice

Problem :

How to sort and reverse sort a slice of integers ?

Solution :

Use sort.Ints and sort.Sort functions.….... read more

Golang : Reverse by word

golang reverse by-word

This tutorial will show you how to reverse the order of words in a string. Reversing the words or elements….... read more

Golang : Time slice or date sort and reverse sort example

golang sort-time time-slice reverse-sort

Sorting time.Time type and dates is pretty straight forward in Golang. Just curious why it is not included in the….... read more

Golang : Combine slices but preserve order example

golang join-arrays combine-slices preserve-order pack-unpack

In the previous tutorial on how to join arrays in Golang, we use the append function to join….... read more

Golang : Reverse IP address for reverse DNS lookup example

golang ip-address reverse-dns-lookup sort


You need to reverse a given IPv4 address into a DNS reverse record form to perform reverse….... read more