GolangGolang gRPC unary, stream, bidirectional RPC examples gRPC has 4 types of functions. This post covers all the functions to explain how to implement them. Let's a2023.06.05Golang
GolangGolang How to filter a Slice with Generics Golang doesn't provide utility functions for Slice. It's easy to implement filter to filter the element but it should be implemented with Generics. Let's check how to do it.2023.06.02Golang
GolangGolang Generics type constraints with interface and Tilda How can we implement if an extended type (Type Definition) needs to be covered by interface for Generics? Let's define an interface with Tilda!2023.05.31Golang
GolangGolang How to start using gRPC in devcontainer gRPC is one of the nice tools when two applications need to be communicated with each other. It's not hard to implement ...2023.05.24Golang
GolangGolang Don’t pass a value to a callback in a loop with range If a value is passed to a callback in a loop with range keyword, it can introduce a bug. The desired value is not used in the callback if it is triggered later. You should know how to work range keyword in this post.2023.04.12Golang
GolangGolang How to extract the desired data from a string by regex How can we implement it to extract values from a string? Using a regular expression is the right approach for it. Compile regex string and find string submatch.2023.04.10Golang
GolangGolang How to define enum and understand how iota works What is the best practice to define enum in Golang? Use iota for enum and define String() func.2023.04.07Golang
GolangGolang How to check if key exists in map How to initialize mapThere are two ways to initialize map in Golang.Initialization without any key-valueIf it's not nece...2023.03.31Golang
GolangGolang How to convert string to float, int Do you want a cheat sheet to know how to convert value to another data type? This article covers what you want.2023.03.06Golang
GolangGolang Improper package structure exports unneeded members Do you want to write unit tests for methods but don't want to expose them to outside of the package? Then, move the methods to internal package. The functions defined in internal package are not exposed. Let's learn how to use it.2023.02.20Golang