There are 4 decision-making statements in Golang they are
if statement : used to decide whether certain statements will be executed or not
if-else statement : if a certain condition is true only then it will execute a block if it is not true then it won’t execute the block of code
Nested-if statement : nested if means if condition inside another
if condition
if-else-if ladder : Here, a user can choose among various options. The if statements are executed of top-down. As early as one of the states controlling the if is correct, the statement compared with that if is executed, and the remaining ladder is bypassed. If none of the conditions is correct, then the last else statement will be executed.