Controls in Golang
Go if-else statements
Go if statement
The if statement is used to test the condition. If it evaluates to true, the body of the statement is executed. If it evaluates to false, if block is skipped .
Syntax
if bool_expression {
/*
Statement...
gautamjha.hashnode.dev8 min read