May 152019

ADM

How to split a string into slice in Golang

  • 15 May 2019
  • ADM

How to split a string into slice using Golang. For a simple split by a singular character you can use Split() method from strings package. For more complex rules the regexp.Split() method can be used.

May 082019

ADM

How to convert string to uppercase in Golang

  • 08 May 2019
  • ADM

How to convert a string into uppercase in Golang using ToUpper method from strings package.

May 072019

ADM

How to convert string to lowercase in Golang

  • 07 May 2019
  • ADM

How to convert a string into lowercase in Golang using ToLower method from strings package.

Apr 152019

ADM

How to convert string to hex string in Golang

  • 15 April 2019
  • ADM

How to convert a string into a hex string type in Golang using EncodeToString method from encoding/hex package.

Apr 122019

ADM

How to convert hex to string in Golang

  • 12 April 2019
  • ADM

How to convert hex to string in Golang using the DecodeString method from encoding/hex package.

May 132020

ADM

How to rename a git branch

  • 13 May 2020
  • ADM

How to rename a git branch in simple steps: rename branch, delete old remote, push the new branch and reset the upstream branch.