Go - Decision Making

Go - Decision Making : Decision making systems require that the programmer specify one or more situations to be evaluated

There are following type of Decision Making.
Sr.No Statement & Description
1 if declaration

An if announcement consists of a boolean expression followed through one or more statements.

2 if...Else statement

An if statement can be followed by using an non-obligatory else announcement, which executes when the boolean expression is fake.

3 nested if statements

You can use one if or else if statement inner another if or else if assertion(s).

four transfer declaration

A transfer assertion lets in a variable to be examined for equality in opposition to a list of values.

five choose announcement

A select announcement is similar to transfer announcement with difference that case statements refers to channel communications.