[9] Results

Golang : Return multiple values from function

golang return-multiple-values function

One of the features that I like about Golang is the ability to return multiple values from a function (Python….... read more

Upload multiple files with Go

upload-multiple golang

Uploading multiple files to Go server can be done easily as well. All you need to do is to parse….... read more

Golang : Write multiple lines or divide string into multiple lines

golang multiple-lines divide-string

Problem :

You have a long string and you need to divide the string into multiple lines. How to do….... read more

Golang : Proper way to set function argument default value

golang function-argument default-values function-parameters

In PHP, it is easy to specify the default values of a function arguments. All you need to do is….... read more

Golang : Capture text return from exec function example

golang os exec capture-return-text stdout


You want to capture the text result return by exec function. How to do that?


The code….... read more

Golang : Post data with url.Values{}

golang url-values post-data add-header

Just a short example on how to use url.Values{}. This code fragment is taken from previous tutorial on….... read more

Golang : Function as an argument type example

golang function-argument passing-values-by-parameters

When we need to invoke another function inside a.... let's say outer function, the typical way to do this is….... read more

Golang : Build and compile multiple source files

golang bin compile-multiple-files workspaces

One of the many challenges for new comers to Golang is to learn how to use go install command to….... read more