[17] Results

Golang : Get all local users and print out their home directory, description and group id

golang home-directory os-user local-user-list

In this short tutorial, we will explore how to get a list of users from the local machine and iterate….... read more


Golang : Iterating Elements Over A List

golang list

In this short tutorial, we will learn how to iterate the elements over a list. The code below will populate….... read more


Golang : Linked list example

golang FIFO LIFO linked-list

In Golang, I would say that slices superseded list.... as slices would allow you to dynamically resize, pop, push, cut,….... read more


Golang : Get and Set User-Agent examples

golang user-agent

Problem :

You want to detect User-Agent of your web application users and also setup your own User-Agent name for….... read more


Golang : List all packages and search for certain package

golang list-packages mux go-list

Problem :

You need to find out if a server has the packages that you need to run or compile….... read more


Golang : Shuffle array of list

golang shuffle array slice list map

Continue from previous tutorial on how to shuffle an array of strings, to shuffle array of list is….... read more


Golang : How to determine if user agent is a mobile device example

golang robot crawler user-agent

With the increasing number of people accessing the Internet with mobile devices such as tablet or smart phone apart from….... read more


Golang : How to get a user home directory path?

golang home-directory os-user lookup-username

Problem :

You need to get a user's home directory path in a Unix/Linux machine for storing or processing customized….... read more


Advertisement