[20] Results

Golang : Handling Yes No Quit query input

golang keyboard-input yes-no-quit-prompt get-char

The following is a simple program that will accept a single key answer from the console without the user hitting….... 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 : 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 : Measure http.Get() execution time

golang measure-get-time http-get

There are times where you need to measure how long a http.Get() response time takes for debugging reason or network….... read more

Golang : Get current time

golang get-current-time

Problem : Need to get current time stamp in Go and display in string. Solution : Use the time.Local() and time.Format() functions. getcurrenttime.go package main….... read more

Golang : Unmarshal JSON from http response

golang http get json unmarshal

For this tutorial, we will learn how to unmarshal JSON data retrieved from http.Get() function. Using the HTTP….... read more

Golang : Implement getters and setters

golang get set identifier struct

Because Golang does not provide automatic getters and setters, Go programmers will have to implement the getters and setters themselves.….... read more