Golang

Golang

Golang How to differentiate between Context cancel and timeout

This post explains how to use Context for the process cancellation or timeout. Furthermore, it shows you how to implement it if you want to keep the process but want to introduce Timeout in it.
Golang

Golang Async/Await implementation with Goroutine and Channel

Golang offers Goroutine and Channel to make Async implementation easy.
Golang

Golang How to Marshal and Unmarshal json

Json format is often used when using REST API or when you want to write the content of a struct to the log. This post explains how to define the struct and show you the result.
Golang

Golang Converting struct to string

Do you want to convert struct to string to write the information to the log file? Let's start with simple data type first and then, convert struct data type!
Golang

Golang How can nil be set to string?

Can nil not be assigned to string variable in Golang? It needs to be a pointer to set nil. You don't know what a pointer is? Then, this post is for you.
Copied title and URL