The ternary operator in Golang
In most of the programming languages, there is an operator (?:) called ternary operator which evaluates like an if-else chain will do. But, Go does not have a ternary operator. In this post, we will dive into why it is absent in Go. What is the ternary operator? The ternary operator is the ?: operator […]
The ternary operator in Golang Read More »