Golang Golang How to accept an arbitrary number of arguments Are you searching for a way to accept an arbitrary number of parameters? Can the parameters have mixed data types? Then, this post is for you. Let's handle the parameter depending on the type. 2023.02.13 Golang
Golang Golang How to get value from any/interface If a function has a parameter that is any or interface{}, it's not possible to access a property by a dot chain. How can we read a value in this case? 2023.02.10 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. 2023.01.02 Golang
Golang Golang Async/Await with Goroutine and Channel Golang offers Goroutine and Channel to make Async implementation easy. 2022.12.30 Golang
Golang Golang Unmarshal json without struct definition 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. 2022.12.19 Golang
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! 2022.12.16 Golang
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. 2022.12.14 Golang