Enhanced formatting (#6769)
parent
96f9a12343
commit
8a3c761698
1 changed files with 6 additions and 6 deletions
@ -1,15 +1,15 @@ |
|||||||
# Conditional Statements |
# Conditional Statements |
||||||
|
|
||||||
Conditional statements are used to run code only if a certain condition is true; go supports : |
Conditional statements are used to run code only if a certain condition is true. Go supports: |
||||||
|
|
||||||
- `if` statements |
- `if` statements |
||||||
- `if / else` statements |
- `if...else` statements |
||||||
- `switch` `case` statements |
- `switch...case` statements |
||||||
|
|
||||||
Visit the following resources to learn more: |
Visit the following resources to learn more: |
||||||
|
|
||||||
- [@official@Effective Go: if statement](https://go.dev/doc/effective_go#if) |
- [@official@Effective Go: `if` statement](https://go.dev/doc/effective_go#if) |
||||||
- [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement/) |
- [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement) |
||||||
- [@article@Go by Example: If-Else](https://gobyexample.com/if-else) |
- [@article@Go by Example: If-Else](https://gobyexample.com/if-else) |
||||||
- [@article@Golang programs If-Else statement](https://www.golangprograms.com/golang-if-else-statements.html) |
- [@article@Golang programs If-Else statement](https://www.golangprograms.com/golang-if-else-statements.html) |
||||||
- [@article@Golang programs switch case](https://www.golangprograms.com/golang-switch-case-statements.html) |
- [@article@Golang programs `switch` case](https://www.golangprograms.com/golang-switch-case-statements.html) |
||||||
|
Loading…
Reference in new issue