Jun 202020

ADM

Sending emails with Golang

  • 20 June 2020
  • ADM

To send an email directly from Golang you can use the package smtp which implements the Simple Mail Transfer Protocol (SMTP) as defined in RFC 5321. You also need a mail server, for this tutorial will use the Gmail mail server.

Apr 202020

ADM

Switch case statements in Golang

  • 20 April 2020
  • ADM

The switch statement is an easier way to have a sequence of if-else statements. In Golang you don't need to have break at the end of each case, it breaks implicitly. Also the golang switch statement work on values of any type.

Apr 192020

ADM

Strings functions in Golang

  • 19 April 2020
  • ADM

List of Golang string functions tested example and short description.

The strings package provides many useful string-related functions.

Apr 152020

ADM

Base64 Decode in Golang

  • 15 April 2020
  • ADM

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.

Apr 152020

ADM

Base64 Encode in Golang

  • 15 April 2020
  • ADM

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.

Apr 142020

ADM

Maps in Golang

  • 14 April 2020
  • ADM

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.