Strings functions in Golang
List of Golang string functions tested example and short description.
The strings
package provides many useful string-related functions.
Base64 Decode in Golang
Golang programing language provides built-in suport for base64 decoding. The base64 functions are available into the
encoding/base64
package. It provides implementations for both Standard, with or without padding and Filename safe Base64 decoding variant.
Base64 Encode in Golang
Golang programing language provides built-in suport for base64 encoding. The base64 functions are available into the
encoding/base64
package. It provides implementations for both Standard, with or without padding and Filename safe Base64 encoding variant.
Maps in Golang
Golang maps implements a hash table. Hash tables are one of the most used data structure. A hash table is an unordered collection of key-value pairs, where each key is unique.
Arrays in Golang
An array is a data structure with a fixed size containing elements (items) of the same type. Iterate over an array using for loop
or for range loop
.
For loop examples in Golang
How to write a for
loop using Golang programming language. Similar with other programing languages, the basic for
loop has three components separated by semicolons.