Tutorials
Golang : How to get quoted string into another string?
Problem :
You have a string and you want to join it with another string which is quoted. Somehow, you….... read more
Golang : Ways to recover memory during run time.
Problem :
Most program written with Golang should have automatic garbage collection to recover the used memory. However, there are….... read more
Golang : How to check if input string is a word?
Problem :
I'm writing a parser and I need to determine if the user input is a word or something….... read more
Golang : Convert(cast) string to rune and back to string example
Tutorial on how how to convert a string to rune type and back to string. Dealing with rune can be….... read more
Golang : How to get struct tag and use field name to retrieve data?
Problem :
A structure data field can have additional information or meta-data. This information is known as struct tag in….... read more
Golang : Struct field tags and what is their purpose?
Got a curious question asked by a colleague today on what's the purpose on field tags inside a struct. For….... read more
Golang : Meaning of omitempty in struct's field tag
Another quick note for myself and maybe useful for you as well. This is about the meaning of the word….... read more
Golang : When to use init() function?
When to use init()
function? If you read this official documentation at effective go init, it can be….... read more
Golang : Extract XML attribute data with attr field tag example
This is an additional tutorial for previous tutorial on how to add XML attribute in Golang with struct….... read more
Golang : Adding XML attributes to xml data or use attribute to differentiate a common tag name
Problem :
There are times when we want to produce XML files that are easier to read by human eyes….... read more
Golang : Convert []string to []byte examples
Problem :
You need a fast way to convert a []string to []byte type. To use in situations such as….... read more
Golang : Clean up null characters from input data
Problem :
You have input data in slice of bytes and you want to remove the null characters in the….... read more
Golang : Of hash table and hash map
A short note for myself. Was looking to build a knowledge base consisting of a keyword or key string and….... read more
Golang : Random Rune generator
Just a quick tutorial on how to generate random runes and add on to previous tutorial on how….... read more
Golang : does not implement flag.Value (missing Set method)
Keep getting this error message : does not implement flag.Value (missing Set method) while trying to write example for flag.Var()….... read more
Golang : Reverse a string with unicode
Problem :
You got a string of :
世界你好! is the equivalent of Hello World! in Chinese
and you need….... read more
Golang : Setting up/configure AWS credentials with official aws-sdk-go
Problem :
You need to setup credentials with official AWS SDK and you have couple of questions :
How to….... read more
Golang : unknown escape sequence error
Encountered a funky error message unknown escape sequence while working this the tutorial on how to find IP….... read more