Tutorials
Golang : Convert(cast) string to uint8 type and back to string
Problem :
You have a variable of type string and you want to convert/type cast it to uint8 type.
Solution….... read more
Golang : How to declare kilobyte, megabyte, gigabyte, terabyte and so on?
Problem :
How to declare one MegaByte in Golang so that I can use it to calculate filesize allocation?
Solution….... read more
Golang : How do I convert int to uint8?
Problem :
You have a variable of type int and you want to convert it to type uint8.
Solution :
….... read moreGolang : Set up source IP address before making HTTP request
Problem :
There are times that you want to use certain IP address in a machine ( such as the….... read more
Golang : Convert to io.ReadSeeker type
Problem :
You want to open a file, read the content into a buffer and then convert the buffer to….... read more
Golang : List available AWS regions
Problem :
You need to get ALL the available AWS regions accessible by you. How to do that in Golang….... read more
Golang : List running EC2 instances and descriptions
Problem :
You need to list the running EC2 instance and get description for each instances. You also want to….... read more
Golang : Create S3 bucket with official aws-sdk-go package
This is just one of the updates/supplementary tutorials to the previous tutorial on how to upload to AWS….... read more
Golang : Upload to S3 with official aws-sdk-go package
An update to my previous tutorial on how to upload data to AWS S3, this tutorial uses the….... read more
Golang : How to parse plain email text and process email header?
Problem :
Your program receive email in plain text and you need to parse email header information. How to that….... read more
Golang : Convert(cast) io.Reader type to string
Problem :
You have input of type io.Reader and you need to convert the input to string type.
Solution :
….... read moreGolang : Measure http.Get() execution time
There are times where you need to measure how long a http.Get() response time takes for debugging reason or network….... read more
Golang : File path independent of Operating System
There are times a program need to determine the operating system it is running on and construct a proper file….... read more
Golang : How to unmarshal JSON inner/nested value and assign to specific struct?
Another tutorial to be recorded here after helping a newbie to Golang. His problem was how to deal with JSON….... read more
Swift : Convert (cast) Int or int32 value to CGFloat
Problem :
How to convert (cast) Int or int32 value to CGFloat type in Swift programming language ?
Solution :
….... read moreSwift : Convert (cast) Int to int32 or Uint32
Problem :
How to convert (cast) Int to Int32 in Swift programming language ?
Solution :
Use the Int32() function….... read more
Swift : Convert (cast) Float to Int or Int32 value
Problem :
How to convert float variable value to type integer in Swift programming language?
Solution :
Use the Int()
….... read more
Golang : Implement getters and setters
Because Golang does not provide automatic getters and setters, Go programmers will have to implement the getters and setters themselves.….... read more