Go - Variables and Constant
Zero Values
What is zero values in Golang?
In Golang if you're declaring a new variable, but are not necessarily initializing it with a value, the variable is given default values is called zero value.
1.bool-->false 2.int-->0 3.float64-->0.0 4.strin...
shounakkhulape.hashnode.dev6 min read