Saman YousefisohiHow to limit the number of simoultanously running goroutines?Introduction3 min read·Apr 27, 2024--1--1
Saman YousefisohiHow to use generics in structs and interfaces in Golang?Golang 1.18 introduced support for generics, allowing developers to write code that is independent of specific types. This means that…3 min read·May 21, 2023--1--1
Saman YousefisohiHow do you find the type of an object in Go?There are different ways to find the type of an object in Go, depending on your use case. Some of the common methods are:2 min read·May 15, 2023----
Saman YousefisohiHow to send JSON in a HTTP Post request in Go?To send JSON in an HTTP POST request in Go, you can follow these steps:2 min read·May 15, 2023----
Saman YousefisohiHow to get current working directory path in Golang?In order to get current working directory in Go, you can use the os package to get the current working directory path. Here's an example:2 min read·May 14, 2023----
Saman YousefisohiHow to write a simple UDP server in GoUDP (User Datagram Protocol) is a simple protocol used for sending datagrams over an IP network. Broadcasting is a method of sending a…2 min read·Apr 29, 2023----
Saman YousefisohiWhat is the difference between pointer receiver and value receiver in Go(lang)?In Go, a receiver is a parameter of a method that specifies which struct or type the method operates on. A receiver can be either a value…2 min read·Apr 23, 2023----