How to install Nginx on Ubuntu
Nginx is one of the most popular web servers in the world. It is also known to be more resource-friendly than Apache in most cases and can be used as a web server or as a reverse proxy.
Install and use firewalld on Ubuntu
Firewalld is one of the Linux firewall management tool and it is available on the in the Ubuntu's default repositories, therefore it is available to
be installed from these repositories using the apt packaging system
.
Switch case statements in Golang
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.
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.