Tutorials

golang.pngGolang : Convert(cast) string to uint8 type and back to string

15th June 2015

Problem :

You have a variable of type string and you want to convert/type cast it to uint8 type.

Solution….... read more



golang.pngGolang : How to declare kilobyte, megabyte, gigabyte, terabyte and so on?

15th June 2015

Problem :

How to declare one MegaByte in Golang so that I can use it to calculate filesize allocation?

Solution….... read more



golang.pngGolang : How do I convert int to uint8?

15th June 2015

Problem :

You have a variable of type int and you want to convert it to type uint8.

Solution :

.... read more



golang.pngGolang : Set up source IP address before making HTTP request

10th June 2015

Problem :

There are times that you want to use certain IP address in a machine ( such as the….... read more



golang.pngGolang : Convert to io.ReadSeeker type

10th June 2015

Problem :

You want to open a file, read the content into a buffer and then convert the buffer to….... read more



s3.pngGolang : List available AWS regions

10th June 2015

Problem :

You need to get ALL the available AWS regions accessible by you. How to do that in Golang….... read more



golang.pngGolang : List running EC2 instances and descriptions

10th June 2015

Problem :

You need to list the running EC2 instance and get description for each instances. You also want to….... read more



s3.pngGolang : Create S3 bucket with official aws-sdk-go package

10th June 2015

This is just one of the updates/supplementary tutorials to the previous tutorial on how to upload to AWS….... read more



s3.pngGolang : Upload to S3 with official aws-sdk-go package

10th June 2015

An update to my previous tutorial on how to upload data to AWS S3, this tutorial uses the….... read more



golang.pngGolang : How to parse plain email text and process email header?

9th June 2015

Problem :

Your program receive email in plain text and you need to parse email header information. How to that….... read more



golang.pngGolang : Convert(cast) io.Reader type to string

9th June 2015

Problem :

You have input of type io.Reader and you need to convert the input to string type.

Solution :

.... read more



golang.pngGolang : Measure http.Get() execution time

5th June 2015

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



golang.pngGolang : File path independent of Operating System

5th June 2015

There are times a program need to determine the operating system it is running on and construct a proper file….... read more



golang.pngGolang : How to unmarshal JSON inner/nested value and assign to specific struct?

5th June 2015

Another tutorial to be recorded here after helping a newbie to Golang. His problem was how to deal with JSON….... read more



swift.jpgSwift : Convert (cast) Int or int32 value to CGFloat

5th June 2015

Problem :

How to convert (cast) Int or int32 value to CGFloat type in Swift programming language ?

Solution :

.... read more



swift.jpgSwift : Convert (cast) Int to int32 or Uint32

5th June 2015

Problem :

How to convert (cast) Int to Int32 in Swift programming language ?

Solution :

Use the Int32() function….... read more



swift.jpgSwift : Convert (cast) Float to Int or Int32 value

5th June 2015

Problem :

How to convert float variable value to type integer in Swift programming language?

Solution :

Use the Int().... read more



golang.pngGolang : Implement getters and setters

4th June 2015

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



Advertisement