[50] Results

Golang : Get login name from environment and prompt for password

golang password os-get-environment two-factor script-authentication


You want to write a Golang script(short program for administrating server, etc) that grab the current user's login name,….... read more

Javascript : Get operating system and browser information

javascript browser-version get-visitor-os whichbrowser

Problem :

You need to find out your visitor's browser and os version. How to do that with Javascript or….... read more

Setting $GOPATH environment variable for Unix/Linux and Windows

golang gopath environment-variable

Go relies on one important environment variable called $GOPATH to determine where is the workspace located in your computer. To….... read more

Golang : http.Get example

golang http get

Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more

Apt-get to install and uninstall Golang

golang install uninstall apt-get

For this short tutorial, we will learn how to install, uninstall Golang with apt-get. We will also explore an interesting….... read more

Golang : Get sub string example

golang get-sub-string

Getting sub string is a common task in extracting details from a larger set of information. Here is a quick….... read more

Golang : Read directory content with filepath.Walk()

golang os

Golang's filepath.Walk function allow a program to traverse a directory content and tree with ease. In this tutorial, we will….... read more

Golang : When to use init() function?

golang init main environment-variables states

When to use init() function? If you read this official documentation at effective go init, it can be….... read more