[52] Results

Golang : Check if item is in slice/array

golang duplicate item-in-slice array

Problem :

You need to see if an item is inside a slice or array.

Solution :

Golang does not….... read more


Golang : Convert word to its plural form example

golang pluralize singular-word item-in-slice

Here is a program that will convert a singular word into its plural form and at the same time, perform….... read more


Golang : Takes a plural word and makes it singular

golang inflector countable plural singular item-in-slice

Here is a program that will convert a plural word into its singular form and at the same time it….... read more


Golang : Check if a word is countable or not

golang inflector countable plural singular item-in-slice

Here is an inflector function useful in determining if a given word is countable or not. The function returns TRUE….... read more


Golang : Find commonalities in two slices or arrays example

golang common-item slice array

Problem:

You have two slices of the same length and you want to find out if they have similar/common items.

.... read more


Golang : Sort words with first uppercase letter

golang sort-words uppercase map replace-element-in-slice tag

Problem:

You use the sort.Strings() function to sort a slice of words. However, you noticed that words with the first….... read more


Golang : How to pass map to html template and access the map's elements

golang index panic-assignment-to-entry-in-nil-map html-text-template slice-array

For this tutorial, we will learn how to pass a map to text or html template and learn how to….... read more


Golang : Integer is between a range

golang minmax in-between-range integer

Problem:

You need to check if a given integer is in between a range of integer. How to do that?

.... read more


Advertisement