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


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


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


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


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.


To remove a remote you can use the command git remote rm in the terminal, from the root folder of your repository.