Posted on 3rd August 2020|17 views
Does Go have a ternary operator?
Posted on 18th September 2025| views
There is no ternary operator in Go but you can get the equivalent results by using if/else
if exp
{ x = trueVale }
else
{ x = falseVale }