[23] Results

Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version

linux lsof unix macosx port-number

Problem :

You need to find out which Linux/Unix or MacOSX applications are listening to port 80( or any other….... read more

Golang : Get UDP client IP address and differentiate clients by port number

golang udp udp-client-address port-number

Problem :

Your UDP server program needs to find out the UDP client IP address before writing to client. However,….... read more

Golang : What is the default port number for connecting to MySQL/MariaDB database ?

golang database mysql mariadb port-number

Problem :

How to determine which port number when trying to connect to a database with https://github.com/go-sql-driver/mysql and….... read more

Generate Random number with math/rand in Go


Random number is useful in many application. One such example is salting password to make in more secure. In this tutorial, we will learn how….... read more

Golang : Serving HTTP and Websocket from different ports in a program example

golang web-socket HTTP port mux


For some reason you want to split the port use by your program to serve HTTP and Web-socket traffic.….... read more

Random number generation with crypto/rand in Go


Random number is useful in many applications. From salting password to enabling secure transactions. In this tutorial, we will learn how to generate random number….... read more

Golang : Test if an input is an Armstrong number example

golang armstrong number cubic

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is….... read more

Golang : How to convert a number to words

golang translate-number-to-words convert-number

I need to translate a given number into words such as 100 to one hundred. The code below is a….... read more