[835] Results

Golang : Get command line arguments.

golang

This tutorial is dedicated to a young(11 years old by the time of writing) and upcoming programmer learning Golang in Malaysia. Happy learning and may….... read more


Golang : Get environment variable

golang

Sometimes we need to get the environment variables for performing next task in our program. It is straight forward to do this in Go. For….... read more


Golang : Create File

golang

Any sane programming language should have the basic File I/O functions. Luckily Go is one programming language in the sane category. We will show you….... read more


Golang : Ackermann function example

golang ackermann

Not really a tutorial, but just want to play with recursive function and toying with Ackermann function. Hope this example….... read more


Golang : Get constant name from value

golang constant

Problem :

How to find out the constant name associated with a value? For example, if the a constant value….... read more


Golang : Fix cannot download, $GOPATH not set error

golang gopath

For anyone exploring Golang and trying to get new packages from ... let say Github. One of the most common….... read more


Golang : Setting variable value with ldflags

golang ldflags

This short tutorial will demonstrate how to initialize a variable value during runtime at the stage of compilation/linking. Go linker….... read more


Golang : Copy file

golang copy

Here’s an example to copy a file named “input.txt” to another file named “output.txt”. Copying files can be done in several ways in Go. The….... read more


Advertisement